Vulnerability · Published May 28, 2021 · Assigned by mitre
CVE-2021-33623
High 7.5
In plain English
A high-severity security flaw in the node-trim-newlines package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.9%top 12.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-trim-newlines | 3.0.0+~3.0.0-1 | DEBIAN-CVE-2021-33623 |
| Debian:13 | node-trim-newlines | 3.0.0+~3.0.0-1 | DEBIAN-CVE-2021-33623 |
| Debian:14 | node-trim-newlines | 3.0.0+~3.0.0-1 | DEBIAN-CVE-2021-33623 |
| Ubuntu:24.04:LTS | node-trim-newlines | no fix listed | UBUNTU-CVE-2021-33623 |
| Ubuntu:25.10 | node-trim-newlines | no fix listed | UBUNTU-CVE-2021-33623 |
| Ubuntu:26.04:LTS | node-trim-newlines | no fix listed | UBUNTU-CVE-2021-33623 |
| Ubuntu:26.10 | node-trim-newlines | no fix listed | UBUNTU-CVE-2021-33623 |
| npm | trim-newlines | 4.0.1 | GHSA-7p7h-4mm5-852v |
| npm | trim-newlines | 3.0.1 | GHSA-7p7h-4mm5-852v |