Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/104301?format=api",
    "purl": "pkg:npm/cross-env.js@0.0.2-security",
    "type": "npm",
    "namespace": "",
    "name": "cross-env.js",
    "version": "0.0.2-security",
    "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/11523?format=api",
            "vulnerability_id": "VCID-1nv3-ecbz-63gb",
            "summary": "Hijacked Environment Variables\n`cross-env.js` was a malicious module published with the intent to hijack environment variables. It has been unpublished by npm.",
            "references": [],
            "fixed_packages": [],
            "aliases": [
                "GMS-2017-177"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-1nv3-ecbz-63gb"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/12560?format=api",
            "vulnerability_id": "VCID-2e83-8mfq-kueh",
            "summary": "Malicious package (Typosquatting)\ncross-env.js is a malicious module published with the intent to hijack environment variables. It has been unpublished by npm.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2017-16081",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00322",
                            "scoring_system": "epss",
                            "scoring_elements": "0.55535",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2017-16081"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/520",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/520"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16081",
                    "reference_id": "CVE-2017-16081",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16081"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-hwhq-3hrj-v6v5",
                    "reference_id": "GHSA-hwhq-3hrj-v6v5",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-hwhq-3hrj-v6v5"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2017-16081",
                "GHSA-hwhq-3hrj-v6v5"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2e83-8mfq-kueh"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/cross-env.js@0.0.2-security"
}