Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/1164045?format=api",
    "purl": "pkg:npm/bun@0.5.8-canary.20230315.1",
    "type": "npm",
    "namespace": "",
    "name": "bun",
    "version": "0.5.8-canary.20230315.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.1.40-canary.20241218.1",
    "latest_non_vulnerable_version": "1.1.40-canary.20241218.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/48853?format=api",
            "vulnerability_id": "VCID-tzsr-sdzp-dba9",
            "summary": "Versions of the package bun after 0.0.12 and before 1.1.30 are vulnerable to Prototype Pollution due to improper input sanitization. An attacker can exploit this vulnerability through Bun's APIs that accept objects.\r\r**Note:** This issue relates to the widely known and actively developed 'Bun' JavaScript runtime. The bun package on NPM at versions 0.0.12 and below belongs to a different and older project that happened to claim the 'bun' name in the past.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2024-21548",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00205",
                            "scoring_system": "epss",
                            "scoring_elements": "0.42721",
                            "published_at": "2026-06-11T12:55:00Z"
                        },
                        {
                            "value": "0.00205",
                            "scoring_system": "epss",
                            "scoring_elements": "0.4289",
                            "published_at": "2026-06-14T12:55:00Z"
                        },
                        {
                            "value": "0.00205",
                            "scoring_system": "epss",
                            "scoring_elements": "0.42901",
                            "published_at": "2026-06-13T12:55:00Z"
                        },
                        {
                            "value": "0.00205",
                            "scoring_system": "epss",
                            "scoring_elements": "0.42881",
                            "published_at": "2026-06-12T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-21548"
                },
                {
                    "reference_url": "https://github.com/oven-sh/bun",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/oven-sh/bun"
                },
                {
                    "reference_url": "https://github.com/oven-sh/bun/pull/14119",
                    "reference_id": "14119",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P"
                        },
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-12-18T15:03:10Z/"
                        }
                    ],
                    "url": "https://github.com/oven-sh/bun/pull/14119"
                },
                {
                    "reference_url": "https://github.com/oven-sh/bun/commit/a234e067a5dc7837602df3fb5489e826920cc65a",
                    "reference_id": "a234e067a5dc7837602df3fb5489e826920cc65a",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P"
                        },
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-12-18T15:03:10Z/"
                        }
                    ],
                    "url": "https://github.com/oven-sh/bun/commit/a234e067a5dc7837602df3fb5489e826920cc65a"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21548",
                    "reference_id": "CVE-2024-21548",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21548"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-v9mx-4pqq-h232",
                    "reference_id": "GHSA-v9mx-4pqq-h232",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-v9mx-4pqq-h232"
                },
                {
                    "reference_url": "https://security.snyk.io/vuln/SNYK-JS-BUN-8499549",
                    "reference_id": "SNYK-JS-BUN-8499549",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P"
                        },
                        {
                            "value": "7.7",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-12-18T15:03:10Z/"
                        }
                    ],
                    "url": "https://security.snyk.io/vuln/SNYK-JS-BUN-8499549"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/1153550?format=api",
                    "purl": "pkg:npm/bun@1.1.30",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-we2n-m9f5-cqdc"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bun@1.1.30"
                }
            ],
            "aliases": [
                "CVE-2024-21548",
                "GHSA-v9mx-4pqq-h232"
            ],
            "risk_score": 3.5,
            "exploitability": "0.5",
            "weighted_severity": "6.9",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-tzsr-sdzp-dba9"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/92738?format=api",
            "vulnerability_id": "VCID-we2n-m9f5-cqdc",
            "summary": "",
            "references": [
                {
                    "reference_url": "https://gist.github.com/lirantal/9780d664037f29d5277d7b2bc569d213",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://gist.github.com/lirantal/9780d664037f29d5277d7b2bc569d213"
                },
                {
                    "reference_url": "https://github.com/oven-sh/bun",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/oven-sh/bun"
                },
                {
                    "reference_url": "https://security.snyk.io/vuln/SNYK-JS-BUN-9510752",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.snyk.io/vuln/SNYK-JS-BUN-9510752"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-8022",
                    "reference_id": "CVE-2025-8022",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-8022"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-4j66-8f4r-3pjx",
                    "reference_id": "GHSA-4j66-8f4r-3pjx",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-4j66-8f4r-3pjx"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/1164762?format=api",
                    "purl": "pkg:npm/bun@1.1.40-canary.20241218.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bun@1.1.40-canary.20241218.1"
                }
            ],
            "aliases": [
                "CVE-2025-8022",
                "GHSA-4j66-8f4r-3pjx"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-we2n-m9f5-cqdc"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bun@0.5.8-canary.20230315.1"
}