Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54287?format=api",
    "purl": "pkg:npm/tough-cookie@2.3.2",
    "type": "npm",
    "namespace": "",
    "name": "tough-cookie",
    "version": "2.3.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.3.3",
    "latest_non_vulnerable_version": "4.1.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38962?format=api",
            "vulnerability_id": "VCID-89zn-s5xk-1fae",
            "summary": "Uncontrolled Resource Consumption\nAn attacker that is able to make an HTTP request using a specially crafted cookie may cause the application to consume an excessive amount of CPU.",
            "references": [
                {
                    "reference_url": "https://github.com/salesforce/tough-cookie/issues/92",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/salesforce/tough-cookie/issues/92"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/101185",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/101185"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15010",
                    "reference_id": "CVE-2017-15010",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15010"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54165?format=api",
                    "purl": "pkg:npm/tough-cookie@2.3.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tough-cookie@2.3.3"
                }
            ],
            "aliases": [
                "CVE-2017-15010"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-89zn-s5xk-1fae"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tough-cookie@2.3.2"
}