Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/57435?format=api",
    "purl": "pkg:gem/user_agent_parser@2.5.1",
    "type": "gem",
    "namespace": "",
    "name": "user_agent_parser",
    "version": "2.5.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40677?format=api",
            "vulnerability_id": "VCID-bmy5-zb8a-pqd8",
            "summary": "ReDoS\nThe programming library UA-Parser uses regular expressions to identify user agent strings. The complexity of the regular expressions is such that an attacker can craft special patterns that keep the server busy for a long time. By sending many requests in short order, an attacker can exhaust the amount of processing power available.",
            "references": [
                {
                    "reference_url": "https://github.com/ua-parser/uap-core/pull/363/files",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/ua-parser/uap-core/pull/363/files"
                },
                {
                    "reference_url": "https://www.openwall.com/lists/oss-security/2019/01/10/2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.openwall.com/lists/oss-security/2019/01/10/2"
                },
                {
                    "reference_url": "https://www.x41-dsec.de/lab/advisories/x41-2018-009-uaparser/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.x41-dsec.de/lab/advisories/x41-2018-009-uaparser/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20164",
                    "reference_id": "CVE-2018-20164",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20164"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/57435?format=api",
                    "purl": "pkg:gem/user_agent_parser@2.5.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/user_agent_parser@2.5.1"
                }
            ],
            "aliases": [
                "CVE-2018-20164"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-bmy5-zb8a-pqd8"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/user_agent_parser@2.5.1"
}