CVE-2021-23425: Regular Expression Denial of Service (ReDoS)
Vulnerability summary
CVE-2021-23425 is a medium (CVSS 5.3) vulnerability in trim-off-newlines_project trim-off-newlines. EPSS estimates a 1.93% chance of exploitation in the next 30 days, higher than 79.9% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1Timeline
- 18-08-2021PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
1.93%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.93% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundExploit Reference (snyk.io)
Maturity: unknown
Exploit Reference (snyk.io)
Maturity: unknown
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Npm1 product
- trim-off-newlines< 1.0.3
Trim-off-newlines_project1 product
- trim-off-newlines< 1.0.3
2 vendors · 2 products
References
6 links- github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6X Refsource MISCWEBBroken LinkThird Party Advisory