Lookup for vulnerable packages by Package URL.

GET /api/packages/58133?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/packages/58133?format=api",
    "purl": "pkg:npm/bl@0.9.5",
    "type": "npm",
    "namespace": "",
    "name": "bl",
    "version": "0.9.5",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "0.9.5",
    "latest_non_vulnerable_version": "1.0.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41032?format=api",
            "vulnerability_id": "VCID-mgnv-su5j-ufd2",
            "summary": "Memory Exposure in bl\nVersions of `bl` before 0.9.5 and 1.0.1 are vulnerable to memory exposure.\n\n`bl.append(number)` in the affected `bl` versions passes a number to Buffer constructor, appending a chunk of uninitialized memory\n\n\n## Recommendation\n\nUpdate to version 0.9.5, 1.0.1 or later.",
            "references": [
                {
                    "reference_url": "https://github.com/rvagg/bl/pull/22",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/rvagg/bl/pull/22"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/596",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.npmjs.com/advisories/596"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-wrw9-m778-g6mc",
                    "reference_id": "GHSA-wrw9-m778-g6mc",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-wrw9-m778-g6mc"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58133?format=api",
                    "purl": "pkg:npm/bl@0.9.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bl@0.9.5"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58134?format=api",
                    "purl": "pkg:npm/bl@1.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bl@1.0.1"
                }
            ],
            "aliases": [
                "GHSA-wrw9-m778-g6mc",
                "GMS-2019-116"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mgnv-su5j-ufd2"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bl@0.9.5"
}