Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/45863?format=api",
    "vulnerability_id": "VCID-6rhe-uytk-77bk",
    "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nVersions of the package @excalidraw/excalidraw from 0.0.0 is vulnerable to Cross-site Scripting (XSS) via embedded links in whiteboard objects due to improper input sanitization.",
    "aliases": [
        {
            "alias": "CVE-2023-26140"
        },
        {
            "alias": "GHSA-v7v8-gjv7-ffmr"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/66585?format=api",
            "purl": "pkg:npm/%40excalidraw/excalidraw@0.15.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540excalidraw/excalidraw@0.15.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/66583?format=api",
            "purl": "pkg:npm/excalidraw@0.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6rhe-uytk-77bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/excalidraw@0.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/excalidraw/excalidraw/commit/b33fa6d6f64d27adc3a47b25c0aa55711740d0af",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/excalidraw/excalidraw/commit/b33fa6d6f64d27adc3a47b25c0aa55711740d0af"
        },
        {
            "reference_url": "https://github.com/excalidraw/excalidraw/pull/6728",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/excalidraw/excalidraw/pull/6728"
        },
        {
            "reference_url": "https://security.snyk.io/vuln/SNYK-JS-EXCALIDRAWEXCALIDRAW-5841658",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://security.snyk.io/vuln/SNYK-JS-EXCALIDRAWEXCALIDRAW-5841658"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-26140",
            "reference_id": "CVE-2023-26140",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-26140"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-v7v8-gjv7-ffmr",
            "reference_id": "GHSA-v7v8-gjv7-ffmr",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-v7v8-gjv7-ffmr"
        },
        {
            "reference_url": "https://github.com/excalidraw/excalidraw/security/advisories/GHSA-v7v8-gjv7-ffmr",
            "reference_id": "GHSA-v7v8-gjv7-ffmr",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/excalidraw/excalidraw/security/advisories/GHSA-v7v8-gjv7-ffmr"
        }
    ],
    "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": 79,
            "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
            "description": "The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."
        },
        {
            "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-6rhe-uytk-77bk"
}