Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/55648?format=api",
    "purl": "pkg:npm/sly07@0.1.2",
    "type": "npm",
    "namespace": "",
    "name": "sly07",
    "version": "0.1.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39820?format=api",
            "vulnerability_id": "VCID-7r3n-qj75-p3ga",
            "summary": "Path Traversal\nsly07 is an API for censoring text. sly07 is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing `../` in the url.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16189",
                    "reference_id": "CVE-2017-16189",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16189"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2017-16189"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7r3n-qj75-p3ga"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/sly07@0.1.2"
}