Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/60328?format=api",
    "purl": "pkg:npm/apostrophe@3.16.1",
    "type": "npm",
    "namespace": "",
    "name": "apostrophe",
    "version": "3.16.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.17.0",
    "latest_non_vulnerable_version": "3.17.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/15508?format=api",
            "vulnerability_id": "VCID-a4vd-zsh5-q3gj",
            "summary": "Code Injection\nApostrophe v3.16.1 was discovered to contain a remote code execution (RCE) vulnerability via the component uploadfs.",
            "references": [
                {
                    "reference_url": "https://www.npmjs.com/package/apostrophe",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.npmjs.com/package/apostrophe"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-28396",
                    "reference_id": "CVE-2022-28396",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-28396"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60329?format=api",
                    "purl": "pkg:npm/apostrophe@3.17.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/apostrophe@3.17.0"
                }
            ],
            "aliases": [
                "CVE-2022-28396"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-a4vd-zsh5-q3gj"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/apostrophe@3.16.1"
}