Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46267?format=api",
    "vulnerability_id": "VCID-etuc-h4yu-zqhn",
    "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nXWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When document names are validated according to a name strategy (disabled by default), XWiki starting in version 12.0-rc-1 and prior to versions 12.10.12 and 15.5-rc-1 is vulnerable to a reflected cross-site scripting attack in the page creation form. This allows an attacker to execute arbitrary actions with the rights of the user opening the malicious link. Depending on the rights of the user, this may allow remote code execution and full read and write access to the whole XWiki installation. This has been patched in XWiki 14.10.12 and 15.5-rc-1 by adding appropriate escaping. The vulnerable template file `createinline.vm` is part of XWiki's WAR and can be patched by manually applying the changes from the fix.",
    "aliases": [
        {
            "alias": "CVE-2023-45136"
        },
        {
            "alias": "GHSA-qcj9-gcpg-4w2w"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/67470?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@14.10.12",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@14.10.12"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/67471?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@15.5-rc-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@15.5-rc-1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/67479?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@12.0-rc-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-etuc-h4yu-zqhn"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@12.0-rc-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65613?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@15.0-rc-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1p78-ed21-wkcs"
                },
                {
                    "vulnerability": "VCID-71as-321s-jkah"
                },
                {
                    "vulnerability": "VCID-8e5e-91ey-tybx"
                },
                {
                    "vulnerability": "VCID-dmf8-yzvm-vffn"
                },
                {
                    "vulnerability": "VCID-etuc-h4yu-zqhn"
                },
                {
                    "vulnerability": "VCID-stnw-v9ve-qua8"
                },
                {
                    "vulnerability": "VCID-xrkz-8vks-ffg5"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-web-templates@15.0-rc-1"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/commit/ba56fda175156dd35035f2b8c86cbd8ef1f90c2e",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xwiki/xwiki-platform/commit/ba56fda175156dd35035f2b8c86cbd8ef1f90c2e"
        },
        {
            "reference_url": "https://jira.xwiki.org/browse/XWIKI-20854",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://jira.xwiki.org/browse/XWIKI-20854"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-qcj9-gcpg-4w2w",
            "reference_id": "GHSA-qcj9-gcpg-4w2w",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-qcj9-gcpg-4w2w"
        },
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qcj9-gcpg-4w2w",
            "reference_id": "GHSA-qcj9-gcpg-4w2w",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qcj9-gcpg-4w2w"
        }
    ],
    "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-etuc-h4yu-zqhn"
}