Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/80158?format=api",
    "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@14.2-rc-1",
    "type": "maven",
    "namespace": "org.xwiki.platform",
    "name": "xwiki-platform-oldcore",
    "version": "14.2-rc-1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "14.3-rc-1",
    "latest_non_vulnerable_version": "17.10.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/52355?format=api",
            "vulnerability_id": "VCID-dnqk-983h-u3et",
            "summary": "XWiki.WebHome vulnerable to Improper Privilege Management in XWiki resolving groups\n### Impact\n\nIt's possible to exploit a bug in XWikiRights resolution of groups to obtain privilege escalation. \n\nMore specifically, editing a right with the object editor leads to adding a supplementary empty value to groups which is then resolved as a reference to XWiki.WebHome page. Adding an XWikiGroup xobject to that page then transforms it to a group, any user put in that group would then obtain the privileges related to the edited right.\n\nNote that this security issue is normally mitigated by the fact that XWiki.WebHome (and XWiki space in general) should be protected by default for edit rights. \n\n### Patches\n\nThe problem has been patched in XWiki 13.10.4 and 14.2RC1 to not consider anymore empty values in XWikiRights. \n\n### Workarounds\n\nIt's possible to workaround the problem by setting appropriate rights on XWiki.WebHome page to prevent users to edit it. \n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-18386\n* https://jira.xwiki.org/browse/XWIKI-15776\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-31166",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83608",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83632",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83606",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83761",
                            "published_at": "2026-05-07T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83741",
                            "published_at": "2026-05-05T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83718",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83713",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83705",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83681",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8368",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83645",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83649",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83657",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8364",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.01997",
                            "scoring_system": "epss",
                            "scoring_elements": "0.83592",
                            "published_at": "2026-04-02T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-31166"
                },
                {
                    "reference_url": "https://github.com/xwiki/xwiki-platform",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform"
                },
                {
                    "reference_url": "https://github.com/xwiki/xwiki-platform/pull/1800",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-04-22T15:42:19Z/"
                        }
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/pull/1800"
                },
                {
                    "reference_url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-04-22T15:42:19Z/"
                        }
                    ],
                    "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx"
                },
                {
                    "reference_url": "https://jira.xwiki.org/browse/XWIKI-15776",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-04-22T15:42:19Z/"
                        }
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-15776"
                },
                {
                    "reference_url": "https://jira.xwiki.org/browse/XWIKI-18386",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2025-04-22T15:42:19Z/"
                        }
                    ],
                    "url": "https://jira.xwiki.org/browse/XWIKI-18386"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31166",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.1",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31166"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-g4h6-qp44-wqvx",
                    "reference_id": "GHSA-g4h6-qp44-wqvx",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-g4h6-qp44-wqvx"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/80157?format=api",
                    "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@13.10.4",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-4mj5-repk-zyg2"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@13.10.4"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/80158?format=api",
                    "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@14.2-rc-1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@14.2-rc-1"
                }
            ],
            "aliases": [
                "CVE-2022-31166",
                "GHSA-g4h6-qp44-wqvx"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dnqk-983h-u3et"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@14.2-rc-1"
}