Vulnerability · Published Aug 18, 2021 · Assigned by snyk
CVE-2021-23425Regular Expression Denial of Service (ReDoS)
Medium 5.3
In plain English
A medium-severity security flaw in trim-off-newlines. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.9%top 19.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | trim-off-newlines | 1.0.3 | GHSA-38fc-wpqx-33j7 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | trim-off-newlines | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197 x_refsource_MISC
- https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6 x_refsource_MISC