Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54796?format=api",
    "purl": "pkg:npm/shiba@1.1.1",
    "type": "npm",
    "namespace": "",
    "name": "shiba",
    "version": "1.1.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39249?format=api",
            "vulnerability_id": "VCID-wqjc-m1ek-dye2",
            "summary": "Cross-site Scripting\nShiba markdown live preview is vulnerable to XSS which leads to code execution due to enabled node integration.",
            "references": [
                {
                    "reference_url": "https://github.com/rhysd/Shiba/issues/42",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/rhysd/Shiba/issues/42"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000491",
                    "reference_id": "CVE-2017-1000491",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000491"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54796?format=api",
                    "purl": "pkg:npm/shiba@1.1.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/shiba@1.1.1"
                }
            ],
            "aliases": [
                "CVE-2017-1000491"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-wqjc-m1ek-dye2"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/shiba@1.1.1"
}