Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/56361?format=api",
    "purl": "pkg:maven/org.apache.commons/commons-compress@1.7.0",
    "type": "maven",
    "namespace": "org.apache.commons",
    "name": "commons-compress",
    "version": "1.7.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.4.1",
    "latest_non_vulnerable_version": "1.26.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40178?format=api",
            "vulnerability_id": "VCID-bys5-jwcb-nkak",
            "summary": "Loop with Unreachable Exit Condition (Infinite Loop)\nWhen reading a specially crafted ZIP archive, the `read` method of Apache Commons `ZipArchiveInputStream` can fail to return the correct `EOF` indication after the end of the stream has been reached. This can lead to an infinite stream, which can be used to mount a denial of service attack against services that use compressed zip package.",
            "references": [
                {
                    "reference_url": "http://www.securityfocus.com/bid/105139",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/105139"
                },
                {
                    "reference_url": "http://www.securitytracker.com/id/1041503",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securitytracker.com/id/1041503"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11771",
                    "reference_id": "CVE-2018-11771",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11771"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56363?format=api",
                    "purl": "pkg:maven/org.apache.commons/commons-compress@1.18",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.18"
                }
            ],
            "aliases": [
                "CVE-2018-11771"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-bys5-jwcb-nkak"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.7.0"
}