Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44120?format=api",
    "vulnerability_id": "VCID-3bjt-18pc-vfe8",
    "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nMultiple cross-site scripting (XSS) vulnerabilities in Apache Struts 2.0.x before 2.0.11.1 and 2.1.x before 2.1.1 allow remote attackers to inject arbitrary web script or HTML via vectors associated with improper handling of (1) \" (double quote) characters in the href attribute of an s:a tag and (2) parameters in the action attribute of an s:url tag.",
    "aliases": [
        {
            "alias": "CVE-2008-6682"
        },
        {
            "alias": "GHSA-jgcr-9c2q-rvp8"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/63444?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.0.11.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.0.11.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55261?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.1.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-dj42-wym9-nbhv"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.1.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52634?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3bjt-18pc-vfe8"
                },
                {
                    "vulnerability": "VCID-4bzw-ges2-d7ek"
                },
                {
                    "vulnerability": "VCID-7hxh-btrk-skhg"
                },
                {
                    "vulnerability": "VCID-8cmt-z8g9-duf2"
                },
                {
                    "vulnerability": "VCID-9mn7-d2mm-uqay"
                },
                {
                    "vulnerability": "VCID-dbzr-zyeu-73g8"
                },
                {
                    "vulnerability": "VCID-gvwn-8r4r-47gm"
                },
                {
                    "vulnerability": "VCID-mvdz-exud-3ybz"
                },
                {
                    "vulnerability": "VCID-nztp-y8p8-cqc6"
                },
                {
                    "vulnerability": "VCID-q2ad-khtm-nqdr"
                },
                {
                    "vulnerability": "VCID-z1jy-4da2-tyhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52669?format=api",
            "purl": "pkg:maven/org.apache.struts/struts2-core@2.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3bjt-18pc-vfe8"
                },
                {
                    "vulnerability": "VCID-dvxu-9sh6-qbef"
                },
                {
                    "vulnerability": "VCID-z1jy-4da2-tyhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.1.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/apache/struts/commit/09147ffad2b3046ed21af0f524c5088e2ac551e6",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/apache/struts/commit/09147ffad2b3046ed21af0f524c5088e2ac551e6"
        },
        {
            "reference_url": "https://github.com/apache/struts/commit/bd3f2f59c9b09f70aed3ebab6bb69b464ee2d6cb",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/apache/struts/commit/bd3f2f59c9b09f70aed3ebab6bb69b464ee2d6cb"
        },
        {
            "reference_url": "https://github.com/apache/struts/commit/dae026a0f0511f83852053bae9d5a622e7f80486",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/apache/struts/commit/dae026a0f0511f83852053bae9d5a622e7f80486"
        },
        {
            "reference_url": "https://issues.apache.org/struts/browse/WW-2414",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://issues.apache.org/struts/browse/WW-2414"
        },
        {
            "reference_url": "https://issues.apache.org/struts/browse/WW-2427",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://issues.apache.org/struts/browse/WW-2427"
        },
        {
            "reference_url": "https://web.archive.org/web/20080610075918/http://www.nabble.com/Feedback%3A-WW-2414%2C-XSS-attack-is-possible-if-using-%3Cs%3Aurl-...%3E-and-%3Cs%3Aa-...%3E-td14771449i20.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.archive.org/web/20080610075918/http://www.nabble.com/Feedback%3A-WW-2414%2C-XSS-attack-is-possible-if-using-%3Cs%3Aurl-...%3E-and-%3Cs%3Aa-...%3E-td14771449i20.html"
        },
        {
            "reference_url": "https://web.archive.org/web/20080611112834/http://www.nabble.com/Feedback%3A-WW-2414%2C-XSS-attack-is-possible-if-using-%3Cs%3Aurl-...%3E-and-%3Cs%3Aa-...%3E-td14771449.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.archive.org/web/20080611112834/http://www.nabble.com/Feedback%3A-WW-2414%2C-XSS-attack-is-possible-if-using-%3Cs%3Aurl-...%3E-and-%3Cs%3Aa-...%3E-td14771449.html"
        },
        {
            "reference_url": "https://web.archive.org/web/20200229155553/http://www.securityfocus.com/bid/34686",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.archive.org/web/20200229155553/http://www.securityfocus.com/bid/34686"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2008-6682",
            "reference_id": "CVE-2008-6682",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2008-6682"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-jgcr-9c2q-rvp8",
            "reference_id": "GHSA-jgcr-9c2q-rvp8",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-jgcr-9c2q-rvp8"
        }
    ],
    "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": 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-3bjt-18pc-vfe8"
}