Skip to content

Regular expression denial of service in npm-user-validate

High severity GitHub Reviewed Published May 10, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm npm-user-validate (npm)

Affected versions

< 1.0.1

Patched versions

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.

References

Published by the National Vulnerability Database Oct 27, 2020
Reviewed Apr 20, 2021
Published to the GitHub Advisory Database May 10, 2021
Last updated Feb 1, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2020-7754

GHSA ID

GHSA-pw54-mh39-w3hc

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.