The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue…
Priority LOW 38CWE-400Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 fixed, 5 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
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.
Why it matters now
EPSS 0.02925 87th percentileScored 2026-11-07
Fix Partial trim-newlines (npm): 3.0.1, 4.0.1Red Hat: 3 advisoriesRed Hat: 2 fixed, 5 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | trim-newlines (npm) | before 3.0.1 | 3.0.1 | Patch available | GHSA-7p7h-4mm5-852v |
| — | trim-newlines (npm) | 4.0.0 to before 4.0.1 | 4.0.1 | Patch available | GHSA-7p7h-4mm5-852v |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- trim-newlines (npm) Vendor— Affected before 3.0.1 Fixed in 3.0.1 Patch available GHSA-7p7h-4mm5-852v
- trim-newlines (npm) Vendor— Affected 4.0.0 to before 4.0.1 Fixed in 4.0.1 Patch available GHSA-7p7h-4mm5-852v
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:* | before 3.0.1; 4.0.0 to before 4.0.1 | Vulnerable | Trim-newlines Project |
| cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:* Versions before 3.0.1; 4.0.0 to before 4.0.1 Vulnerable ·Trim-newlines Project
- cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-7p7h-4mm5-852v trim-newlines (npm) Fixed in 3.0.1 Advisory →
- Fix · GHSA-7p7h-4mm5-852v trim-newlines (npm) Fixed in 4.0.1 Advisory →
Red Hat 3 advisories
- RHSA-2026:34342 Released 2026-07-01 · Red Hat rating CriticalCluster Observability Operator 1.5.0
- Cluster Observability Operator 1.5 registry.redhat.io/cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9, registry.redhat.io/cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9, registry.redhat.io/cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9 +9
- RHSA-2022:5555 Released 2022-07-14 · Red Hat rating ModerateRHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update
- RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 apache-commons-compress-1.21-1.2.el8ev, apache-commons-compress-javadoc-1.21-1.2.el8ev, ovirt-dependencies-4.5.2-1.el8ev +1
- RHSA-2021:4618 Released 2021-11-11 · Red Hat rating ImportantRed Hat Advanced Cluster Management 2.4 images and security updates
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2.0 | Affected | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Virtualization 4 | Affected | No fix yet: Fix deferred |
| Cluster Observability Operator 1.5 | Fixed | RHSA-2026:34342 |
| RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 | Fixed | RHSA-2022:5555 |
Not affected: 2 products
- Cluster Observability Operator 1.5
- RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4
Timeline
- 2026-10-02 Threatist record created from CVE-2021-33623
- 2026-10-03 Alias added: GHSA-7p7h-4mm5-852v
- 2026-11-03 Fix available: Cluster Observability Operator 1.5.3 · Red Hat
- 2026-11-07 Fix available: Cluster Observability Operator 1.5 · Red Hat
References
Advisory 3
Other 5
- https://www.npmjs.com/package/trim-newlines
- https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91
- https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869
- https://github.com/sindresorhus/trim-newlines
- https://security.netapp.com/advisory/ntap-20210702-0007
Sources
- CVE-2021-33623 · CVE Program
- CVE-2021-33623 · NVD
- FIRST EPSS
- GHSA-7p7h-4mm5-852v · GitHub Advisory Database · CC BY 4.0
- CVE-2021-33623 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences