Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/64847?format=api",
    "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@12.6.1",
    "type": "maven",
    "namespace": "org.xwiki.platform",
    "name": "xwiki-platform-distribution-war",
    "version": "12.6.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "13.10.11",
    "latest_non_vulnerable_version": "15.8-rc-1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44996?format=api",
            "vulnerability_id": "VCID-p435-wdg5-eqax",
            "summary": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')\nXWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Affected versions of xwiki are subject to code injection in the `since` parameter of the `/xwiki/bin/view/XWiki/Notifications/Code/LegacyNotificationAdministration` endpoint. This provides an XWiki syntax injection attack via the since-parameter, allowing privilege escalation from view to programming rights and subsequent code execution privilege. The vulnerability has been patched in XWiki 15.0-rc-1, 14.10.3, 14.4.8 and 14.10.3. Users are advised to upgrade. Users unable to upgrade may modify the page `XWiki.Notifications.Code.LegacyNotificationAdministration` to add the missing escaping. For versions < 14.6-rc-1 a workaround is to modify the file `<xwikiwebapp>/templates/distribution/eventmigration.wiki` to add the missing escaping.",
            "references": [
                {
                    "reference_url": "https://github.com/xwiki/xwiki-platform/commit/6d74e2e4aa03d19f0be385ab63ae9e0f0e90a766",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/6d74e2e4aa03d19f0be385ab63ae9e0f0e90a766"
                },
                {
                    "reference_url": "https://github.com/xwiki/xwiki-platform/commit/8e7c7f90f2ddaf067cb5b83b181af41513028754#diff-4e13f4ee4a42938bf1201b7ee71ca32edeacba22559daf0bcb89d534e0225949R70",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/xwiki/xwiki-platform/commit/8e7c7f90f2ddaf067cb5b83b181af41513028754#diff-4e13f4ee4a42938bf1201b7ee71ca32edeacba22559daf0bcb89d534e0225949R70"
                },
                {
                    "reference_url": "https://jira.xwiki.org/browse/XWIKI-20287",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jira.xwiki.org/browse/XWIKI-20287"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-29525",
                    "reference_id": "CVE-2023-29525",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-29525"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-jgg7-w2rj-58cj",
                    "reference_id": "GHSA-jgg7-w2rj-58cj",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-jgg7-w2rj-58cj"
                },
                {
                    "reference_url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jgg7-w2rj-58cj",
                    "reference_id": "GHSA-jgg7-w2rj-58cj",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jgg7-w2rj-58cj"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64850?format=api",
                    "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@13.10.11",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@13.10.11"
                },
                {
                    "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/64852?format=api",
                    "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.6-rc-1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@14.6-rc-1"
                }
            ],
            "aliases": [
                "CVE-2023-29525",
                "GHSA-jgg7-w2rj-58cj"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-p435-wdg5-eqax"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war@12.6.1"
}