Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54152?format=api",
    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.34",
    "type": "maven",
    "namespace": "org.apache.struts",
    "name": "struts2-rest-plugin",
    "version": "2.3.34",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.5.13",
    "latest_non_vulnerable_version": "6.3.0.2",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38857?format=api",
            "vulnerability_id": "VCID-2f37-y2q9-e7h4",
            "summary": "DoS attack via crafted XML payload processed by REST Plugin using XStream library\nThe REST Plugin in this package is using an outdated XStream library which is vulnerable and allow perform a DoS attack using malicious request with specially crafted XML payload.",
            "references": [
                {
                    "reference_url": "https://struts.apache.org/docs/s2-051.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://struts.apache.org/docs/s2-051.html"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/100611",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/100611"
                },
                {
                    "reference_url": "http://www.securitytracker.com/id/1039262",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securitytracker.com/id/1039262"
                },
                {
                    "reference_url": "https://access.redhat.com/security/cve/CVE-2017-9793",
                    "reference_id": "CVE-2017-9793",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/security/cve/CVE-2017-9793"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9793",
                    "reference_id": "CVE-2017-9793",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9793"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52788?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.20.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-npge-yn8z-6fac"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.20.3"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52789?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.24",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-npge-yn8z-6fac"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.24"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54152?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54153?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.5.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.5.13"
                }
            ],
            "aliases": [
                "CVE-2017-9793"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2f37-y2q9-e7h4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38847?format=api",
            "vulnerability_id": "VCID-ceb4-v9ww-rkfn",
            "summary": "RCE attack via REST plugin with XStream handler to deserialise XML requests\nThe REST Plugin in this package uses an `XStreamHandler` with an instance of `XStream` for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.",
            "references": [
                {
                    "reference_url": "https://blogs.apache.org/foundation/entry/apache-struts-statement-on-equifax",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://blogs.apache.org/foundation/entry/apache-struts-statement-on-equifax"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1488482",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1488482"
                },
                {
                    "reference_url": "https://cwiki.apache.org/confluence/display/WW/S2-052",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cwiki.apache.org/confluence/display/WW/S2-052"
                },
                {
                    "reference_url": "https://github.com/apache/struts",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/struts"
                },
                {
                    "reference_url": "https://github.com/apache/struts/commit/19494718865f2fb7da5ea363de3822f87fbda26",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/struts/commit/19494718865f2fb7da5ea363de3822f87fbda26"
                },
                {
                    "reference_url": "https://github.com/apache/struts/commit/6dd6e5cfb7b5e020abffe7e8091bd63fe97c10a",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/struts/commit/6dd6e5cfb7b5e020abffe7e8091bd63fe97c10a"
                },
                {
                    "reference_url": "https://lgtm.com/blog/apache_struts_CVE-2017-9805",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lgtm.com/blog/apache_struts_CVE-2017-9805"
                },
                {
                    "reference_url": "https://security.netapp.com/advisory/ntap-20170907-0001",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.netapp.com/advisory/ntap-20170907-0001"
                },
                {
                    "reference_url": "https://struts.apache.org/docs/s2-052.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://struts.apache.org/docs/s2-052.html"
                },
                {
                    "reference_url": "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20170907-struts2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20170907-struts2"
                },
                {
                    "reference_url": "https://web.archive.org/web/20170909031344/http://www.securityfocus.com/bid/100609",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://web.archive.org/web/20170909031344/http://www.securityfocus.com/bid/100609"
                },
                {
                    "reference_url": "https://web.archive.org/web/20170922053119/http://www.securitytracker.com/id/1039263",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://web.archive.org/web/20170922053119/http://www.securitytracker.com/id/1039263"
                },
                {
                    "reference_url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9805",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9805"
                },
                {
                    "reference_url": "https://www.exploit-db.com/exploits/42627",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.exploit-db.com/exploits/42627"
                },
                {
                    "reference_url": "https://www.kb.cert.org/vuls/id/112992",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.kb.cert.org/vuls/id/112992"
                },
                {
                    "reference_url": "https://access.redhat.com/security/cve/CVE-2017-9805",
                    "reference_id": "CVE-2017-9805",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/security/cve/CVE-2017-9805"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9805",
                    "reference_id": "CVE-2017-9805",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9805"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-gg9m-fj3v-r58c",
                    "reference_id": "GHSA-gg9m-fj3v-r58c",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-gg9m-fj3v-r58c"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54152?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54153?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.5.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.5.13"
                }
            ],
            "aliases": [
                "CVE-2017-9805",
                "GHSA-gg9m-fj3v-r58c"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ceb4-v9ww-rkfn"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.34"
}