Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/72641?format=api",
    "purl": "pkg:npm/npm-user-validate@1.0.1",
    "type": "npm",
    "namespace": "",
    "name": "npm-user-validate",
    "version": "1.0.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/32406?format=api",
            "vulnerability_id": "VCID-khpz-njyn-5qd1",
            "summary": "Regular Expression Denial of Service in npm-user-validate\n`npm-user-validate` before version `1.0.1` is vulnerable to a Regular Expression Denial of Service (REDos). The regex that validates user emails took exponentially longer to process long input strings beginning with `@` characters.\n\n### Impact\nThe issue affects the `email` function. If you use this function to process arbitrary user input with no character limit the application may be susceptible to Denial of Service.\n\n### Patches\nThe issue is patched in version 1.0.1 by improving the regular expression used and also enforcing a 254 character limit.\n\n### Workarounds\nRestrict the character length to a reasonable degree before passing a value to `.emal()`; Also, consider doing a more rigorous sanitizing/validation beforehand.",
            "references": [
                {
                    "reference_url": "https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-xgh6-85xh-479p",
                    "reference_id": "GHSA-xgh6-85xh-479p",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-xgh6-85xh-479p"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/72641?format=api",
                    "purl": "pkg:npm/npm-user-validate@1.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/npm-user-validate@1.0.1"
                }
            ],
            "aliases": [
                "GHSA-xgh6-85xh-479p"
            ],
            "risk_score": 1.4,
            "exploitability": "0.5",
            "weighted_severity": "2.7",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-khpz-njyn-5qd1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/47602?format=api",
            "vulnerability_id": "VCID-v5h1-gpt1-97bj",
            "summary": "Regular expression denial of service in npm-user-validate\nThis affects the package npm-user-validate before 1.0.1. The regex that validates user emails took exponentially longer to process long input strings beginning with @ characters.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2020-7754.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2020-7754.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-7754",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81956",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81847",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81844",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8187",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81877",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81897",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81885",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8188",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81916",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81918",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81941",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81952",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81814",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.0163",
                            "scoring_system": "epss",
                            "scoring_elements": "0.81824",
                            "published_at": "2026-04-02T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-7754"
                },
                {
                    "reference_url": "https://github.com/npm/npm-user-validate/commit/c8a87dac1a4cc6988b5418f30411a8669bef204e",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/npm/npm-user-validate/commit/c8a87dac1a4cc6988b5418f30411a8669bef204e"
                },
                {
                    "reference_url": "https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7754",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7754"
                },
                {
                    "reference_url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019353",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019353"
                },
                {
                    "reference_url": "https://snyk.io/vuln/SNYK-JS-NPMUSERVALIDATE-1019352",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://snyk.io/vuln/SNYK-JS-NPMUSERVALIDATE-1019352"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1892430",
                    "reference_id": "1892430",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1892430"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-pw54-mh39-w3hc",
                    "reference_id": "GHSA-pw54-mh39-w3hc",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-pw54-mh39-w3hc"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2021:0421",
                    "reference_id": "RHSA-2021:0421",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2021:0421"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2021:0485",
                    "reference_id": "RHSA-2021:0485",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2021:0485"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2021:0521",
                    "reference_id": "RHSA-2021:0521",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2021:0521"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2021:0548",
                    "reference_id": "RHSA-2021:0548",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2021:0548"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2021:0549",
                    "reference_id": "RHSA-2021:0549",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2021:0549"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2021:0551",
                    "reference_id": "RHSA-2021:0551",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2021:0551"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/72641?format=api",
                    "purl": "pkg:npm/npm-user-validate@1.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/npm-user-validate@1.0.1"
                }
            ],
            "aliases": [
                "CVE-2020-7754",
                "GHSA-pw54-mh39-w3hc"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-v5h1-gpt1-97bj"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/npm-user-validate@1.0.1"
}