CVE-2021-23388: Regular expression denial of service in forms
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.58177%
CWE
Published
6/7/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
forms | npm | < 1.3.2 | 1.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability was specifically in the email validation logic, as indicated by CVE-2021-23388's description and the GitHub PR #214 which replaced the regex-based validator. The commit diff shows the vulnerable regex was removed from exports.email
in validators.js
and replaced with a library call. The original regex pattern was complex and susceptible to ReDoS, as confirmed by the Snyk advisory explaining catastrophic backtracking scenarios.