Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/58849?format=api",
    "purl": "pkg:npm/tar@5.0.8",
    "type": "npm",
    "namespace": "",
    "name": "tar",
    "version": "5.0.8",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "5.0.10",
    "latest_non_vulnerable_version": "7.5.11",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41395?format=api",
            "vulnerability_id": "VCID-f7d2-a3c5-q7an",
            "summary": "Path Traversal\nThis npm package has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be modified by a symbolic link is not extracted.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37701",
                    "reference_id": "CVE-2021-37701",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37701"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58848?format=api",
                    "purl": "pkg:npm/tar@4.4.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@4.4.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58849?format=api",
                    "purl": "pkg:npm/tar@5.0.8",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@5.0.8"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/58850?format=api",
                    "purl": "pkg:npm/tar@6.1.7",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@6.1.7"
                }
            ],
            "aliases": [
                "CVE-2021-37701",
                "GHSA-9r2w-394v-53qc"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-f7d2-a3c5-q7an"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/tar@5.0.8"
}