Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/32406?format=api
{ "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.", "aliases": [ { "alias": "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" } ], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/143073?format=api", "purl": "pkg:npm/npm-user-validate@1.0.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-khpz-njyn-5qd1" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/npm-user-validate@1.0.0" } ], "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" } ], "weaknesses": [], "exploits": [], "severity_range_score": "0.1 - 3", "exploitability": "0.5", "weighted_severity": "2.7", "risk_score": 1.4, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-khpz-njyn-5qd1" }