Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/55061?format=api",
    "purl": "pkg:gem/rack-protection@2.0.1",
    "type": "gem",
    "namespace": "",
    "name": "rack-protection",
    "version": "2.0.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "1.5.5",
    "latest_non_vulnerable_version": "2.0.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39420?format=api",
            "vulnerability_id": "VCID-4ww5-cwef-j7a2",
            "summary": "Path traversal on Windows\nPath traversal is possible via backslash characters on Windows. An attacker could access arbitrary files and directories stored on the file system.",
            "references": [
                {
                    "reference_url": "https://github.com/sinatra/rack-protection/pull/120",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sinatra/rack-protection/pull/120"
                },
                {
                    "reference_url": "https://github.com/sinatra/rack-protection/pull/120/commits/4239c2f189a73dfc93e957fc97adcbcbc0ed31c6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sinatra/rack-protection/pull/120/commits/4239c2f189a73dfc93e957fc97adcbcbc0ed31c6"
                },
                {
                    "reference_url": "https://github.com/sinatra/sinatra/commit/d17aa95f5056c52daf5d7c3170fbfd831dc96381",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sinatra/sinatra/commit/d17aa95f5056c52daf5d7c3170fbfd831dc96381"
                },
                {
                    "reference_url": "https://github.com/sinatra/sinatra/pull/1379",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sinatra/sinatra/pull/1379"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-7212",
                    "reference_id": "CVE-2018-7212",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-7212"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55061?format=api",
                    "purl": "pkg:gem/rack-protection@2.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack-protection@2.0.1"
                }
            ],
            "aliases": [
                "CVE-2018-7212"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-4ww5-cwef-j7a2"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rack-protection@2.0.1"
}