{"id":"GHSA-xgh6-85xh-479p","summary":"Regular Expression Denial of Service in npm-user-validate","details":"`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":["CVE-2020-7754","GHSA-pw54-mh39-w3hc"],"modified":"2026-05-07T05:00:56.619930820Z","published":"2020-10-16T18:56:26Z","database_specific":{"nvd_published_at":null,"cwe_ids":[],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2020-10-16T18:56:02Z"},"references":[{"type":"WEB","url":"https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p"}],"affected":[{"package":{"name":"npm-user-validate","ecosystem":"npm","purl":"pkg:npm/npm-user-validate"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.0.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/10/GHSA-xgh6-85xh-479p/GHSA-xgh6-85xh-479p.json"}}],"schema_version":"1.9.0"}