Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/59374?format=api",
    "purl": "pkg:npm/ua-parser-js@1.0.0",
    "type": "npm",
    "namespace": "",
    "name": "ua-parser-js",
    "version": "1.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.0.1",
    "latest_non_vulnerable_version": "1.0.33",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/111463?format=api",
            "vulnerability_id": "VCID-f6e7-4dxm-cug5",
            "summary": "Duplicate Advisory: Embedded malware in ua-parser-js\n### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-pjwm-rvh2-c87w. This link is maintained to preserve external references.\n\n### Original Description\nA vulnerability was found in ua-parser-js 0.7.29/0.8.0/1.0.0. It has been rated as critical. This issue affects the crypto mining component which introduces a backdoor. Upgrading to version 0.7.30, 0.8.1 and 1.0.1 is able to address this issue. It is recommended to upgrade the affected component.",
            "references": [
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js/issues/536",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/faisalman/ua-parser-js/issues/536"
                },
                {
                    "reference_url": "https://vuldb.com/?id.185453",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://vuldb.com/?id.185453"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4229",
                    "reference_id": "CVE-2021-4229",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4229"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-236c-vhj4-gfxg",
                    "reference_id": "GHSA-236c-vhj4-gfxg",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-236c-vhj4-gfxg"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-pjwm-rvh2-c87w",
                    "reference_id": "GHSA-pjwm-rvh2-c87w",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-pjwm-rvh2-c87w"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59377?format=api",
                    "purl": "pkg:npm/ua-parser-js@1.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.1"
                }
            ],
            "aliases": [
                "GHSA-236c-vhj4-gfxg"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-f6e7-4dxm-cug5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41624?format=api",
            "vulnerability_id": "VCID-uqy7-83dp-37gd",
            "summary": "Embedded malware in ua-parser-js\nThe npm package `ua-parser-js` had three versions published with malicious code. Users of affected versions (0.7.29, 0.8.0, 1.0.0) should upgrade as soon as possible and check their systems for suspicious activity. See [this issue](https://github.com/faisalman/ua-parser-js/issues/536) for details as they unfold.\n\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-4229",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00863",
                            "scoring_system": "epss",
                            "scoring_elements": "0.75439",
                            "published_at": "2026-06-04T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-4229"
                },
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/faisalman/ua-parser-js"
                },
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js/issues/536",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/faisalman/ua-parser-js/issues/536"
                },
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js/issues/536#issuecomment-949772496",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/faisalman/ua-parser-js/issues/536#issuecomment-949772496"
                },
                {
                    "reference_url": "https://us-cert.cisa.gov/ncas/current-activity/2021/10/22/malware-discovered-popular-npm-package-ua-parser-js",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://us-cert.cisa.gov/ncas/current-activity/2021/10/22/malware-discovered-popular-npm-package-ua-parser-js"
                },
                {
                    "reference_url": "https://www.npmjs.com/package/ua-parser-js",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/package/ua-parser-js"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4229",
                    "reference_id": "CVE-2021-4229",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4229"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-pjwm-rvh2-c87w",
                    "reference_id": "GHSA-pjwm-rvh2-c87w",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-pjwm-rvh2-c87w"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/59377?format=api",
                    "purl": "pkg:npm/ua-parser-js@1.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.1"
                }
            ],
            "aliases": [
                "CVE-2021-4229",
                "GHSA-pjwm-rvh2-c87w",
                "GMS-2021-1"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-uqy7-83dp-37gd"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.0"
}