Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54100?format=api",
    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.34",
    "type": "maven",
    "namespace": "org.apache.struts",
    "name": "struts2-core",
    "version": "2.3.34",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.3.35",
    "latest_non_vulnerable_version": "7.1.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "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/54100?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54101?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@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"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38856?format=api",
            "vulnerability_id": "VCID-dvxu-9sh6-qbef",
            "summary": "Improper Input Validation\nUsing an unintentional expression in a Freemarker tag instead of string literals can lead to a RCE attack.",
            "references": [
                {
                    "reference_url": "https://struts.apache.org/docs/s2-053.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://struts.apache.org/docs/s2-053.html"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/100829",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/100829"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12611",
                    "reference_id": "CVE-2017-12611",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12611"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54100?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53731?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.12",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-hrky-nmnv-g3eu"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.12"
                }
            ],
            "aliases": [
                "CVE-2017-12611"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dvxu-9sh6-qbef"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38860?format=api",
            "vulnerability_id": "VCID-hrky-nmnv-g3eu",
            "summary": "Improper Input Validation\nIf an application allows entering a URL in a form field and built-in `URLValidator` is used, it is possible to prepare a special URL which will be used to overload server process when performing validation of the URL.",
            "references": [
                {
                    "reference_url": "https://struts.apache.org/docs/s2-050.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://struts.apache.org/docs/s2-050.html"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/100612",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/100612"
                },
                {
                    "reference_url": "http://www.securitytracker.com/id/1039261",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securitytracker.com/id/1039261"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9804",
                    "reference_id": "CVE-2017-9804",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9804"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52682?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.20.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-mmth-7rgf-aqfa"
                        },
                        {
                            "vulnerability": "VCID-qdsq-8td3-5qa1"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.20.3"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52680?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.24",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-fwkj-x53j-yqd8"
                        },
                        {
                            "vulnerability": "VCID-qdsq-8td3-5qa1"
                        },
                        {
                            "vulnerability": "VCID-z1jy-4da2-tyhk"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.24"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54100?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54101?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.13"
                }
            ],
            "aliases": [
                "CVE-2017-9804"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hrky-nmnv-g3eu"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.34"
}