Lookup for vulnerabilities affecting packages.

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

{
    "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.",
    "aliases": [
        {
            "alias": "CVE-2022-21721"
        },
        {
            "alias": "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"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/59781?format=api",
            "purl": "pkg:npm/next@12.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-nfj2-qu7e-4khe"
                },
                {
                    "vulnerability": "VCID-stms-k1mv-pkhp"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/next@12.0.0"
        }
    ],
    "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"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-nfj2-qu7e-4khe"
}