Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/59273?format=api",
    "purl": "pkg:npm/electron@10.1.0",
    "type": "npm",
    "namespace": "",
    "name": "electron",
    "version": "10.1.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "11.5.0",
    "latest_non_vulnerable_version": "27.0.0-beta.8",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41593?format=api",
            "vulnerability_id": "VCID-j3za-9wj7-vkd7",
            "summary": "Exposure of Resource to Wrong Sphere\nElectron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. A vulnerability allows a sandboxed renderer to request a `thumbnail` image of an arbitrary file on the user's system. The thumbnail can potentially include significant parts of the original file, including textual data in many cases. all contain a fix for the vulnerability. Two workarounds aside from upgrading are available. One may make the vulnerability significantly more difficult for an attacker to exploit by enabling `contextIsolation` in one's app. One may also disable the functionality of the `createThumbnailFromPath` API if one does not need it.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-39184",
                    "reference_id": "CVE-2021-39184",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-39184"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59278?format=api",
                    "purl": "pkg:npm/electron@11.5.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/electron@11.5.0"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59279?format=api",
                    "purl": "pkg:npm/electron@12.1.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/electron@12.1.0"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59280?format=api",
                    "purl": "pkg:npm/electron@13.3.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/electron@13.3.0"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59281?format=api",
                    "purl": "pkg:npm/electron@15.1.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/electron@15.1.0"
                }
            ],
            "aliases": [
                "CVE-2021-39184",
                "GHSA-mpjm-v997-c4h4"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-j3za-9wj7-vkd7"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/electron@10.1.0"
}