Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54148?format=api",
    "purl": "pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.33",
    "type": "maven",
    "namespace": "org.apache.struts",
    "name": "struts2-rest-plugin",
    "version": "2.3.33",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.3.34",
    "latest_non_vulnerable_version": "6.3.0.2",
    "affected_by_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/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"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-rest-plugin@2.3.33"
}