Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/299154?format=api",
    "purl": "pkg:npm/%40prisma/sdk@2.18.0-dev.16",
    "type": "npm",
    "namespace": "@prisma",
    "name": "sdk",
    "version": "2.18.0-dev.16",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.20.0",
    "latest_non_vulnerable_version": "2.20.0",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/54308?format=api",
            "vulnerability_id": "VCID-8daq-2htq-fbak",
            "summary": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')\nPrisma is an open source ORM for Node.This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. It only affects the `getPackedPackage` function and this function is not advertised and only used for tests & building our CLI, no malicious code was found after checking our codebase.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-21414",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.02499",
                            "scoring_system": "epss",
                            "scoring_elements": "0.85605",
                            "published_at": "2026-06-04T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-21414"
                },
                {
                    "reference_url": "https://github.com/prisma/prisma/pull/6245",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/prisma/prisma/pull/6245"
                },
                {
                    "reference_url": "https://security.netapp.com/advisory/ntap-20210618-0003",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://security.netapp.com/advisory/ntap-20210618-0003"
                },
                {
                    "reference_url": "https://security.netapp.com/advisory/ntap-20210618-0003/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.netapp.com/advisory/ntap-20210618-0003/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21414",
                    "reference_id": "CVE-2021-21414",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21414"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-pxcc-hj8w-fmm7",
                    "reference_id": "GHSA-pxcc-hj8w-fmm7",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-pxcc-hj8w-fmm7"
                },
                {
                    "reference_url": "https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7",
                    "reference_id": "GHSA-pxcc-hj8w-fmm7",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/80259?format=api",
                    "purl": "pkg:npm/%40prisma/sdk@2.20.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540prisma/sdk@2.20.0"
                }
            ],
            "aliases": [
                "CVE-2021-21414",
                "GHSA-pxcc-hj8w-fmm7"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-8daq-2htq-fbak"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540prisma/sdk@2.18.0-dev.16"
}