Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52604?format=api",
    "purl": "pkg:gem/actionpack@4.2.5.2",
    "type": "gem",
    "namespace": "",
    "name": "actionpack",
    "version": "4.2.5.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "5.0.0.beta1.1",
    "latest_non_vulnerable_version": "7.1.3.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38060?format=api",
            "vulnerability_id": "VCID-nt1m-frdh-tbbq",
            "summary": "Improper Input Validation\nThe Rails gem allows remote attackers to execute arbitrary Ruby code by leveraging an application's unrestricted use of the render method.",
            "references": [
                {
                    "reference_url": "https://groups.google.com/forum/#!topic/ruby-security-ann/ly-IH-fxr_Q",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://groups.google.com/forum/#!topic/ruby-security-ann/ly-IH-fxr_Q"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2016-2098",
                    "reference_id": "CVE-2016-2098",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-2098"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52597?format=api",
                    "purl": "pkg:gem/actionpack@3.2.22.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionpack@3.2.22.2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52603?format=api",
                    "purl": "pkg:gem/actionpack@4.1.14.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionpack@4.1.14.2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52604?format=api",
                    "purl": "pkg:gem/actionpack@4.2.5.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionpack@4.2.5.2"
                }
            ],
            "aliases": [
                "CVE-2016-2098"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-nt1m-frdh-tbbq"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionpack@4.2.5.2"
}