Lookup for vulnerabilities affecting packages.

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

{
    "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`.",
    "aliases": [
        {
            "alias": "CVE-2012-1006"
        },
        {
            "alias": "GHSA-cmpm-jg8r-fv37"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/83866?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.1.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.1.2"
        },
        {
            "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"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299835?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299836?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.6",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299837?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.8",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.8"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299838?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.9",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.9"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299839?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.11",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299840?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.11.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.11.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299841?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.11.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.11.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299842?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.12",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.12"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299843?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.0.14",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.0.14"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/993572?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299847?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.2.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.2.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/299848?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.2.1.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4bqg-76fv-3kcd"
                },
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.2.1.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/81958?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-parent@2.2.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-c4ag-2wfu-53ew"
                },
                {
                    "vulnerability": "VCID-nmgp-r7hb-5ke1"
                },
                {
                    "vulnerability": "VCID-tcaj-6bcg-k7g2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-parent@2.2.3"
        }
    ],
    "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.99027",
                    "published_at": "2026-05-05T12: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"
                },
                {
                    "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.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"
                }
            ],
            "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"
        }
    ],
    "weaknesses": [
        {
            "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": 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": 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": [
        {
            "date_added": "2012-02-02",
            "description": "Apache Struts - Multiple Persistent Cross-Site Scripting Vulnerabilities",
            "required_action": null,
            "due_date": null,
            "notes": null,
            "known_ransomware_campaign_use": false,
            "source_date_published": "2012-02-02",
            "exploit_type": "webapps",
            "platform": "multiple",
            "source_date_updated": "2012-02-02",
            "data_source": "Exploit-DB",
            "source_url": "http://secpod.org/advisories/SecPod_Apache_Struts_Multiple_Parsistant_XSS_Vulns.txt"
        }
    ],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "2.0",
    "weighted_severity": "6.2",
    "risk_score": 10.0,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-c4ag-2wfu-53ew"
}