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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-trim-newlines | 3.0.0+~3.0.0-1 | — |
| Debian 13 | node-trim-newlines | 3.0.0+~3.0.0-1 | — |
| Debian 12 | node-trim-newlines | 3.0.0+~3.0.0-1 | — |
| Debian 10 | node-trim-newlines | 1.0.0-1+deb10u1 | DLA-3247-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-trim-newlines | No fix yet | — |
| Ubuntu 26.04 LTS | node-trim-newlines | No fix yet | — |
| Ubuntu 25.10 | node-trim-newlines | No fix yet | — |
| Ubuntu 24.04 LTS | node-trim-newlines | No fix yet | — |
| Ubuntu 20.04 LTS | node-trim-newlines | 1.0.0-1ubuntu0.20.04.1 | USN-5999-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | node-trim-newlines | 1.0.0-1ubuntu0.18.04.1 | USN-5999-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhev Manager 4 | apache-commons-compress +1 | 1.21-1.2.el8ev | RHSA-2022:5555 |
| Red Hat Rhev Manager 4 | ovirt-dependencies | 4.5.2-1.el8ev | RHSA-2022:5555 |
| Red Hat Rhev Manager 4 | ovirt-web-ui | 1.9.0-1.el8ev | RHSA-2022:5555 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | trim-newlines | < 3.0.1 | 3.0.1 | GHSA-7p7h-4mm5-852v |
| npm | trim-newlines | >= 4.0.0, < 4.0.1 | 4.0.1 | GHSA-7p7h-4mm5-852v |
Advisories 5
- RHSA-2022:5555 Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- WID-SEC-2022-0699 Red Hat Virtualization: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Jul 1, 2026
- USN-5999-1 node-trim-newlines vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3247-1 node-trim-newlines - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2023-0857 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 4, 2023