Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/61022?format=api",
    "purl": "pkg:npm/bodymen@1.1.1",
    "type": "npm",
    "namespace": "",
    "name": "bodymen",
    "version": "1.1.1",
    "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/42729?format=api",
            "vulnerability_id": "VCID-w56j-wbfx-hye2",
            "summary": "Prototype Pollution in bodymen\nThe package bodymen from 0.0.0 is vulnerable to Prototype Pollution via the handler function which could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload. **Note:** This vulnerability derives from an incomplete fix to [CVE-2019-10792](https://security.snyk.io/vuln/SNYK-JS-BODYMEN-548897)",
            "references": [
                {
                    "reference_url": "https://snyk.io/vuln/SNYK-JS-BODYMEN-2342623",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://snyk.io/vuln/SNYK-JS-BODYMEN-2342623"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25296",
                    "reference_id": "CVE-2022-25296",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25296"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-vhxc-fhm5-qcp9",
                    "reference_id": "GHSA-vhxc-fhm5-qcp9",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-vhxc-fhm5-qcp9"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2022-25296",
                "GHSA-vhxc-fhm5-qcp9"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-w56j-wbfx-hye2"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bodymen@1.1.1"
}