{"id":"CVE-2020-7754","aliases":["CVE-2020-7754","GHSA-pw54-mh39-w3hc","GHSA-xgh6-85xh-479p"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"This 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This 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.","source":"cvelist"},{"lang":"en","text":"`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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta al paquete npm-user-validate versiones anteriores a 1.0.1.&#xa0;La expresión regular que comprueba los correos electrónicos de los usuarios tardó exponencialmente más en procesar cadenas de entrada largas que comienzan con caracteres @","source":"nvd"}],"published":"2020-10-16T18:56:26.000Z","modified":"2026-07-08T06:49:44.248Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.0.1","status":"affected"}],"product":"npm-user-validate","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"npm","package":"npm-user-validate","purl":"pkg:npm/npm-user-validate","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"npm","package":"npm-user-validate","purl":"pkg:npm/npm-user-validate","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.1"}],"vendor":"npmjs","product":"npm-user-validate","cpe":"cpe:2.3:a:npmjs:npm-user-validate:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-NPMUSERVALIDATE-1019352","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019353","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/npm-user-validate/commit/c8a87dac1a4cc6988b5418f30411a8669bef204e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7754","tags":["advisory"],"sources":["ghsa"]}],"credits":["Yeting Li"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7754","url":"https://www.cve.org/CVERecord?id=CVE-2020-7754","licence":"CVE Terms of Use","modified":"2024-09-17T04:28:53.351Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pw54-mh39-w3hc","url":"https://github.com/advisories/GHSA-pw54-mh39-w3hc","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:44.248Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xgh6-85xh-479p","url":"https://github.com/advisories/GHSA-xgh6-85xh-479p","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:44.248Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7754","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7754","licence":"Public domain","modified":"2026-06-17T03:25:23.267Z"}],"updatedAt":"2026-11-25T22:57:55.471Z","epss":{"score":0.03255,"percentile":0.88683,"date":"2026-12-01T12:00:22.000Z"}}