Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/57454?format=api",
    "purl": "pkg:npm/total.js@3.2.3",
    "type": "npm",
    "namespace": "",
    "name": "total.js",
    "version": "3.2.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "3.2.3",
    "latest_non_vulnerable_version": "3.4.9",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40694?format=api",
            "vulnerability_id": "VCID-gj61-mm9w-9ufd",
            "summary": "Path Traversal\n`index.js` in Total.js Platform allows path traversal.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2019-8903",
                    "reference_id": "CVE-2019-8903",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-8903"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/57454?format=api",
                    "purl": "pkg:npm/total.js@3.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/total.js@3.2.3"
                }
            ],
            "aliases": [
                "CVE-2019-8903"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-gj61-mm9w-9ufd"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/total.js@3.2.3"
}