Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/352099?format=api",
    "vulnerability_id": "VCID-g99m-56hu-r3fg",
    "summary": "DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation",
    "aliases": [
        {
            "alias": "GHSA-39q2-94rc-95cp"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1067228?format=api",
            "purl": "pkg:npm/dompurify@3.4.0",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/dompurify@3.4.0"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1067227?format=api",
            "purl": "pkg:npm/dompurify@3.3.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-g99m-56hu-r3fg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/dompurify@3.3.3"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/cure53/DOMPurify",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/cure53/DOMPurify"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-39q2-94rc-95cp",
            "reference_id": "GHSA-39q2-94rc-95cp",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-39q2-94rc-95cp"
        },
        {
            "reference_url": "https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp",
            "reference_id": "GHSA-39q2-94rc-95cp",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                },
                {
                    "value": "5.3",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 783,
            "name": "Operator Precedence Logic Error",
            "description": "The product uses an expression in which operator precedence causes incorrect logic to be used."
        }
    ],
    "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-g99m-56hu-r3fg"
}