Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/60319?format=api",
    "purl": "pkg:npm/next@12.0.9",
    "type": "npm",
    "namespace": "",
    "name": "next",
    "version": "12.0.9",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "12.1.0",
    "latest_non_vulnerable_version": "16.1.5",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42216?format=api",
            "vulnerability_id": "VCID-nfj2-qu7e-4khe",
            "summary": "Uncontrolled Resource Consumption\nNext. one must use next start or a custom server and the built-in i18n support. Deployments on Vercel, along with similar environments where invalid requests are filtered before reaching Next.js, are not affected. A patch has been released, `next@12.0.9`, that mitigates this issue. As a workaround, one may ensure `/${locale}/_next/` is blocked from reaching the Next.js instance until it becomes feasible to upgrade.",
            "references": [
                {
                    "reference_url": "https://github.com/vercel/next.js/pull/33503",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vercel/next.js/pull/33503"
                },
                {
                    "reference_url": "https://github.com/vercel/next.js/releases/tag/v12.0.9",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vercel/next.js/releases/tag/v12.0.9"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21721",
                    "reference_id": "CVE-2022-21721",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21721"
                },
                {
                    "reference_url": "https://github.com/vercel/next.js/security/advisories/GHSA-wr66-vrwm-5g5x",
                    "reference_id": "GHSA-wr66-vrwm-5g5x",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/vercel/next.js/security/advisories/GHSA-wr66-vrwm-5g5x"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60319?format=api",
                    "purl": "pkg:npm/next@12.0.9",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/next@12.0.9"
                }
            ],
            "aliases": [
                "CVE-2022-21721",
                "GHSA-wr66-vrwm-5g5x"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-nfj2-qu7e-4khe"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/next@12.0.9"
}