Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/62014?format=api",
    "purl": "pkg:npm/eventsource@2.0.0",
    "type": "npm",
    "namespace": "",
    "name": "eventsource",
    "version": "2.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.1.1",
    "latest_non_vulnerable_version": "2.0.2",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43310?format=api",
            "vulnerability_id": "VCID-2sn6-2sgj-rkh9",
            "summary": "Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository eventsource/eventsource prior to v2.0.2.",
            "references": [
                {
                    "reference_url": "https://github.com/eventsource/eventsource/commit/10ee0c4881a6ba2fe65ec18ed195ac35889583c4",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eventsource/eventsource/commit/10ee0c4881a6ba2fe65ec18ed195ac35889583c4"
                },
                {
                    "reference_url": "https://huntr.dev/bounties/dc9e467f-be5d-4945-867d-1044d27e9b8e",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://huntr.dev/bounties/dc9e467f-be5d-4945-867d-1044d27e9b8e"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-1650",
                    "reference_id": "CVE-2022-1650",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-1650"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-6h5x-7c5m-7cr7",
                    "reference_id": "GHSA-6h5x-7c5m-7cr7",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-6h5x-7c5m-7cr7"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/62016?format=api",
                    "purl": "pkg:npm/eventsource@2.0.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/eventsource@2.0.2"
                }
            ],
            "aliases": [
                "CVE-2022-1650",
                "GHSA-6h5x-7c5m-7cr7"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2sn6-2sgj-rkh9"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/eventsource@2.0.0"
}