Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54226?format=api",
    "purl": "pkg:npm/dcserver@0.0.0-alpha",
    "type": "npm",
    "namespace": "",
    "name": "dcserver",
    "version": "0.0.0-alpha",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38919?format=api",
            "vulnerability_id": "VCID-efg5-6f17-c3dz",
            "summary": "Directory Traversal\n`dcserver` is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing \"../\" in the url./n",
            "references": [
                {
                    "reference_url": "https://github.com/JacksonGL/NPM-Vuln-PoC/blob/master/directory-traversal/tiny-http",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/JacksonGL/NPM-Vuln-PoC/blob/master/directory-traversal/tiny-http"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "GMS-2017-253"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-efg5-6f17-c3dz"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/dcserver@0.0.0-alpha"
}