Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/45138?format=api",
    "vulnerability_id": "VCID-d5sz-5qc5-yqa5",
    "summary": "Improper Encoding or Escaping of Output\nXWiki Platform is a generic wiki platform. Starting in versions 2.2-milestone-1 and prior to versions 14.4.8, 14.10.4, and 15.0-rc-1, it's possible to execute javascript with the right of any user by leading him to a special URL on the wiki targeting a page which contains an attachment. This has been patched in XWiki 15.0-rc-1, 14.10.4, and 14.4.8. The easiest possible workaround is to edit file `<xwiki app>/templates/importinline.vm` and apply the modification described in commit 28905f7f518cc6f21ea61fe37e9e1ed97ef36f01.",
    "aliases": [
        {
            "alias": "CVE-2023-32071"
        },
        {
            "alias": "GHSA-j9h5-vcgv-2jfm"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64851?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.4.8",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.4.8"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65066?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.10.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.10.4"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65065?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@2.2-milestone-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-d5sz-5qc5-yqa5"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@2.2-milestone-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64849?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-d5sz-5qc5-yqa5"
                },
                {
                    "vulnerability": "VCID-p435-wdg5-eqax"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.5"
        }
    ],
    "references": [
        {
            "reference_url": "https://app.intigriti.com/company/submissions/e95a7ad5-7029-4627-abf0-3e3e3ea0b4ce/XWIKI-E93DFEYK",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://app.intigriti.com/company/submissions/e95a7ad5-7029-4627-abf0-3e3e3ea0b4ce/XWIKI-E93DFEYK"
        },
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/commit/28905f7f518cc6f21ea61fe37e9e1ed97ef36f01",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xwiki/xwiki-platform/commit/28905f7f518cc6f21ea61fe37e9e1ed97ef36f01"
        },
        {
            "reference_url": "https://jira.xwiki.org/browse/XWIKI-20340",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://jira.xwiki.org/browse/XWIKI-20340"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-32071",
            "reference_id": "CVE-2023-32071",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-32071"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-j9h5-vcgv-2jfm",
            "reference_id": "GHSA-j9h5-vcgv-2jfm",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-j9h5-vcgv-2jfm"
        },
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j9h5-vcgv-2jfm",
            "reference_id": "GHSA-j9h5-vcgv-2jfm",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j9h5-vcgv-2jfm"
        }
    ],
    "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": 116,
            "name": "Improper Encoding or Escaping of Output",
            "description": "The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved."
        },
        {
            "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-d5sz-5qc5-yqa5"
}