Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/340647?format=api",
    "vulnerability_id": "VCID-uxja-62es-e7dk",
    "summary": "Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)",
    "aliases": [
        {
            "alias": "GHSA-8r5v-vm4m-4g25"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/80280?format=api",
            "purl": "pkg:cargo/h2@0.3.24",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/h2@0.3.24"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/80279?format=api",
            "purl": "pkg:cargo/h2@0.4.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/h2@0.4.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/80278?format=api",
            "purl": "pkg:cargo/h2@0.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-uxja-62es-e7dk"
                },
                {
                    "vulnerability": "VCID-wuxh-n9ef-dua7"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:cargo/h2@0.4.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/hyperium/h2",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hyperium/h2"
        },
        {
            "reference_url": "https://github.com/hyperium/h2/commit/59570e11ccddbec85f67a0c7aa353f7730c68854",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hyperium/h2/commit/59570e11ccddbec85f67a0c7aa353f7730c68854"
        },
        {
            "reference_url": "https://github.com/hyperium/h2/commit/d919cd6fd8e0f4f5d1f6282fab0b38a1b4bf999c",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hyperium/h2/commit/d919cd6fd8e0f4f5d1f6282fab0b38a1b4bf999c"
        },
        {
            "reference_url": "https://github.com/hyperium/h2/pull/737",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hyperium/h2/pull/737"
        },
        {
            "reference_url": "https://rustsec.org/advisories/RUSTSEC-2024-0003.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://rustsec.org/advisories/RUSTSEC-2024-0003.html"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-8r5v-vm4m-4g25",
            "reference_id": "GHSA-8r5v-vm4m-4g25",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-8r5v-vm4m-4g25"
        }
    ],
    "weaknesses": [],
    "exploits": [],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-uxja-62es-e7dk"
}