Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/993572?format=api",
    "purl": "pkg:maven/org.apache.struts/struts2-parent@2.2",
    "type": "maven",
    "namespace": "org.apache.struts",
    "name": "struts2-parent",
    "version": "2.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.3.20",
    "latest_non_vulnerable_version": "2.3.20",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/57580?format=api",
            "vulnerability_id": "VCID-c4ag-2wfu-53ew",
            "summary": "Apache Struts Multiple Cross-site Scripting Vulnerabilities\nMultiple cross-site scripting (XSS) vulnerabilities in Apache Struts 2.0.14 and 2.2.3 allow remote attackers to inject arbitrary web script or HTML via the (1) name or (2) lastName parameter to `struts2-showcase/person/editPerson.action`, or the (3) clientName parameter to `struts2-rest-showcase/orders`.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2012-1006.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2012-1006.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2012-1006",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99029",
                            "published_at": "2026-05-09T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99017",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.9902",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99022",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99024",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99027",
                            "published_at": "2026-05-05T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99028",
                            "published_at": "2026-05-07T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99005",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99007",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99009",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.9901",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99011",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99012",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99013",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99014",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99015",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.78065",
                            "scoring_system": "epss",
                            "scoring_elements": "0.99016",
                            "published_at": "2026-04-18T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2012-1006"
                },
                {
                    "reference_url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/72888",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/72888"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2012-1006",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-1006"
                },
                {
                    "reference_url": "https://web.archive.org/web/20120219225953/http://secpod.org/advisories/SecPod_Apache_Struts_Multiple_Parsistant_XSS_Vulns.txt",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://web.archive.org/web/20120219225953/http://secpod.org/advisories/SecPod_Apache_Struts_Multiple_Parsistant_XSS_Vulns.txt"
                },
                {
                    "reference_url": "https://web.archive.org/web/20131013214245/http://secpod.org/blog/?p=450",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://web.archive.org/web/20131013214245/http://secpod.org/blog/?p=450"
                },
                {
                    "reference_url": "https://web.archive.org/web/20200229131840/http://www.securityfocus.com/bid/51902",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://web.archive.org/web/20200229131840/http://www.securityfocus.com/bid/51902"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=788285",
                    "reference_id": "788285",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=788285"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-cmpm-jg8r-fv37",
                    "reference_id": "GHSA-cmpm-jg8r-fv37",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-cmpm-jg8r-fv37"
                },
                {
                    "reference_url": "http://secpod.org/advisories/SecPod_Apache_Struts_Multiple_Parsistant_XSS_Vulns.txt",
                    "reference_id": "OSVDB-78994;OSVDB-78993;OSVDB-78992;OSVDB-78991;OSVDB-78990;CVE-2012-1007;CVE-2012-1006",
                    "reference_type": "exploit",
                    "scores": [],
                    "url": "http://secpod.org/advisories/SecPod_Apache_Struts_Multiple_Parsistant_XSS_Vulns.txt"
                },
                {
                    "reference_url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/webapps/18452.txt",
                    "reference_id": "OSVDB-78994;OSVDB-78993;OSVDB-78992;OSVDB-78991;OSVDB-78990;CVE-2012-1007;CVE-2012-1006",
                    "reference_type": "exploit",
                    "scores": [],
                    "url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/webapps/18452.txt"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/50534?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-parent@2.2.3.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-tcaj-6bcg-k7g2"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.2.3.1"
                }
            ],
            "aliases": [
                "CVE-2012-1006",
                "GHSA-cmpm-jg8r-fv37"
            ],
            "risk_score": 10.0,
            "exploitability": "2.0",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-c4ag-2wfu-53ew"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "10.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.2"
}