Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42952?format=api",
    "vulnerability_id": "VCID-x4jc-245z-vqac",
    "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nOWASP AntiSamy before 1.6.7 allows XSS via HTML tag smuggling on STYLE content with crafted input. The output serializer does not properly encode the supposed Cascading Style Sheets (CSS) content. NOTE: this issue exists because of an incomplete fix for CVE-2022-28367.",
    "aliases": [
        {
            "alias": "CVE-2022-29577"
        },
        {
            "alias": "GHSA-vp37-2f9p-3vr3"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61465?format=api",
            "purl": "pkg:maven/org.owasp.antisamy/antisamy@1.6.7",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.owasp.antisamy/antisamy@1.6.7"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://github.com/nahsra/antisamy/commit/32e273507da0e964b58c50fd8a4c94c9d9363af0",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/nahsra/antisamy/commit/32e273507da0e964b58c50fd8a4c94c9d9363af0"
        },
        {
            "reference_url": "https://github.com/nahsra/antisamy/releases/tag/v1.6.7",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/nahsra/antisamy/releases/tag/v1.6.7"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-29577",
            "reference_id": "CVE-2022-29577",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-29577"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-vp37-2f9p-3vr3",
            "reference_id": "GHSA-vp37-2f9p-3vr3",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-vp37-2f9p-3vr3"
        }
    ],
    "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-x4jc-245z-vqac"
}