What’s Vulnerable › Vulnerabilities
CVE-2021-23425: Regular Expression Denial of Service (ReDoS)
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-18 · updated 2026-06-17
Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Affected products
- trim-off-newlines: before 1.0.3 — fixed in 1.0.3
How to fix
Upgrade to a fixed version: trim-off-newlines 1.0.3. Check the vendor advisory for mitigations.
References
- https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197
- https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850
- https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197
- https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850
Get alerted when CVE-2021-23425 or the next vulnerability affects your stack