CVE-2021-33623
Uncontrolled Resource Consumption in trim-newlines
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2021-33623- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-400
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-33623- Updated
- 2026-11-02
EUVDEUVD-2021-1281 No score
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.
- Record
EUVD-2021-1281- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7p7h-4mm5-852v
7.5
Uncontrolled Resource Consumption in trim-newlines
@rkesters/gnuplot is an easy to use node module to draw charts using gnuplot and ps2pdf. 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.
- Record
GHSA-7p7h-4mm5-852v- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2021-33623- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-33623
7.5
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.
- Record
DEBIAN-CVE-2021-33623- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVGHSA-7p7h-4mm5-852v
7.5
Uncontrolled Resource Consumption in trim-newlines
@rkesters/gnuplot is an easy to use node module to draw charts using gnuplot and ps2pdf. 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.
- Record
GHSA-7p7h-4mm5-852v- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVRHSA-2022:5555
7.5
Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update
- Record
RHSA-2022:5555- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-33623
7.5
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.
- Record
UBUNTU-CVE-2021-33623- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1772496678 No score
TuxCare security update for trim-newlines (1 CVE)
TuxCare rebuilt trim-newlines to address 1 CVE. Fixed in 1.0.0-tuxcare.1.
- Record
CLSA-2026-1772496678- Updated
- 2026-11-02
OSVCLSA-2026-1773015268 No score
TuxCare security update for trim-newlines (1 CVE)
TuxCare rebuilt trim-newlines to address 1 CVE. Fixed in 2.0.0-tuxcare.1.
- Record
CLSA-2026-1773015268- Updated
- 2026-11-02
OSVCLSA-2026-1777163883 No score
TuxCare security update for trim-newlines (1 CVE)
TuxCare rebuilt trim-newlines to address 1 CVE. Fixed in 3.0.0-tuxcare.1.
- Record
CLSA-2026-1777163883- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2021-33623 No score
CVE-2021-33623 in @rootio/trim-newlines - Patched by Root
Root has patched CVE-2021-33623 in the @rootio/trim-newlines package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2021-33623- Updated
- 2026-11-02
OSVUSN-5999-1 No score
node-trim-newlines vulnerability
It was discovered that trim-newlines incorrectly handled certain inputs. If a user or an automated system were tricked into opening a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service. (CVE-2021-33623)
- Record
USN-5999-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
trim-newlinesnpm |
before 3.0.1 | 3.0.1 |
trim-newlinesnpm |
4.0.0 to 4.0.0 | 4.0.1 |
trim-newlinesTuxCare:npm |
1.0.0-tuxcare.0 up to 1.0.0-tuxcare.1, plus listed versions 1.0.0 |
1.0.0-tuxcare.1 |
trim-newlinesTuxCare:npm |
2.0.0-tuxcare.0 up to 2.0.0-tuxcare.1, plus listed versions 2.0.0 |
2.0.0-tuxcare.1 |
trim-newlinesTuxCare:npm |
3.0.0-tuxcare.0 up to 3.0.0-tuxcare.1, plus listed versions 3.0.0 |
3.0.0-tuxcare.1 |
node-trim-newlinesDebian:12 |
before 3.0.0+~3.0.0-1 | 3.0.0+~3.0.0-1 |
node-trim-newlinesDebian:13 |
before 3.0.0+~3.0.0-1 | 3.0.0+~3.0.0-1 |
node-trim-newlinesDebian:14 |
before 3.0.0+~3.0.0-1 | 3.0.0+~3.0.0-1 |
node-trim-newlinesDebian:10 |
before 1.0.0-1+deb10u1, plus listed versions 1.0.0-1 |
1.0.0-1+deb10u1 |
trim-newlinesnpm |
4.0.0 up to 4.0.1 | 4.0.1 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ovirt-web-uiRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:1.9.0-1.el8ev | 0:1.9.0-1.el8ev |
ovirt-dependenciesRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:4.5.2-1.el8ev | 0:4.5.2-1.el8ev |
apache-commons-compressRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:1.21-1.2.el8ev | 0:1.21-1.2.el8ev |
apache-commons-compress-javadocRed Hat:rhev_manager:4.4:el8 From an advisory covering 9 CVEs |
before 0:1.21-1.2.el8ev | 0:1.21-1.2.el8ev |
@rootio/trim-newlinesRoot:npm |
before 1.0.0-root.io.1 | 1.0.0-root.io.11.0.0-root.io.2 |
trim-newlinesRoot:npm |
before 1.0.0-aikido.2 | 1.0.0-aikido.2 |
node-trim-newlinesUbuntu:18.04:LTS |
before 1.0.0-1ubuntu0.18.04.1, plus listed versions 1.0.0-1 |
1.0.0-1ubuntu0.18.04.1 |
node-trim-newlinesUbuntu:20.04:LTS |
before 1.0.0-1ubuntu0.20.04.1, plus listed versions 1.0.0-1 |
1.0.0-1ubuntu0.20.04.1 |
node-trim-newlinesUbuntu:24.04:LTS |
All versions, plus listed versions 3.0.0+~3.0.0-1 |
None known |
node-trim-newlinesUbuntu:25.10 |
All versions, plus listed versions 3.0.0+~3.0.0-1 |
None known |
node-trim-newlinesUbuntu:26.10 |
All versions, plus listed versions 3.0.0+~3.0.0-1 |
None known |
node-trim-newlinesUbuntu:26.04:LTS |
All versions, plus listed versions 3.0.0+~3.0.0-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-33623 is a high vulnerability (CVSS 7.5) in Trim-newlines Project Trim-newlines, published May 28, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.93%, the 87th percentile. Fixed in trim-newlines 3.0.1.
References
npmjs.com/package/trim-newlines
github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1
security.netapp.com/advisory/ntap-20210702-0007
lists.debian.org/debian-lts-announce/2022/12/msg00033.html
nvd.nist.gov/vuln/detail/CVE-2021-33623
github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91
Show 77 moreShow less
github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869
github.com/advisories/GHSA-7p7h-4mm5-852v
security-tracker.debian.org/tracker/CVE-2021-33623
github.com/sindresorhus/trim-newlines
access.redhat.com/errata/RHSA-2022:5555
access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/technical_notes
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1663217
bugzilla.redhat.com/show_bug.cgi?id=1782077
bugzilla.redhat.com/show_bug.cgi?id=1849045
bugzilla.redhat.com/show_bug.cgi?id=1852308
bugzilla.redhat.com/show_bug.cgi?id=1958032
bugzilla.redhat.com/show_bug.cgi?id=1966615
bugzilla.redhat.com/show_bug.cgi?id=1976607
bugzilla.redhat.com/show_bug.cgi?id=1981895
bugzilla.redhat.com/show_bug.cgi?id=1981900
bugzilla.redhat.com/show_bug.cgi?id=1981903
bugzilla.redhat.com/show_bug.cgi?id=1981909
bugzilla.redhat.com/show_bug.cgi?id=1994144
bugzilla.redhat.com/show_bug.cgi?id=2001574
bugzilla.redhat.com/show_bug.cgi?id=2001923
bugzilla.redhat.com/show_bug.cgi?id=2006625
bugzilla.redhat.com/show_bug.cgi?id=2007557
bugzilla.redhat.com/show_bug.cgi?id=2030293
bugzilla.redhat.com/show_bug.cgi?id=2068270
bugzilla.redhat.com/show_bug.cgi?id=2069414
bugzilla.redhat.com/show_bug.cgi?id=2070045
bugzilla.redhat.com/show_bug.cgi?id=2072626
bugzilla.redhat.com/show_bug.cgi?id=2081241
bugzilla.redhat.com/show_bug.cgi?id=2081559
bugzilla.redhat.com/show_bug.cgi?id=2089856
bugzilla.redhat.com/show_bug.cgi?id=2092885
bugzilla.redhat.com/show_bug.cgi?id=2093795
bugzilla.redhat.com/show_bug.cgi?id=2097414
bugzilla.redhat.com/show_bug.cgi?id=2099650
bugzilla.redhat.com/show_bug.cgi?id=2105296
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_5555.json
access.redhat.com/security/cve/CVE-2021-3807
cve.org/CVERecord?id=CVE-2021-3807
nvd.nist.gov/vuln/detail/CVE-2021-3807
huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
access.redhat.com/security/cve/CVE-2021-22096
bugzilla.redhat.com/show_bug.cgi?id=2034584
cve.org/CVERecord?id=CVE-2021-22096
nvd.nist.gov/vuln/detail/CVE-2021-22096
access.redhat.com/security/cve/CVE-2021-33623
cve.org/CVERecord?id=CVE-2021-33623
access.redhat.com/security/cve/CVE-2021-35515
cve.org/CVERecord?id=CVE-2021-35515
nvd.nist.gov/vuln/detail/CVE-2021-35515
openwall.com/lists/oss-security/2021/07/13/1
commons.apache.org/proper/commons-compress/security-reports.html
lists.apache.org/thread.html/r19ebfd71770ec0617a9ea180e321ef927b3fefb4c81ec5d1902d20ab%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2021-35516
cve.org/CVERecord?id=CVE-2021-35516
nvd.nist.gov/vuln/detail/CVE-2021-35516
openwall.com/lists/oss-security/2021/07/13/2
lists.apache.org/thread.html/rf68442d67eb166f4b6cf0bbbe6c7f99098c12954f37332073c9822ca%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2021-35517
cve.org/CVERecord?id=CVE-2021-35517
nvd.nist.gov/vuln/detail/CVE-2021-35517
openwall.com/lists/oss-security/2021/07/13/3
lists.apache.org/thread.html/r605d906b710b95f1bbe0036a53ac6968f667f2c249b6fbabada9a940%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2021-36090
cve.org/CVERecord?id=CVE-2021-36090
nvd.nist.gov/vuln/detail/CVE-2021-36090
openwall.com/lists/oss-security/2021/07/13/4
lists.apache.org/thread.html/rc4134026d7d7b053d4f9f2205531122732405012c8804fd850a9b26f%40%3Cuser.commons.apache.org%3E
access.redhat.com/security/cve/CVE-2022-22950
cve.org/CVERecord?id=CVE-2022-22950
nvd.nist.gov/vuln/detail/CVE-2022-22950
access.redhat.com/security/cve/CVE-2022-31051
cve.org/CVERecord?id=CVE-2022-31051
nvd.nist.gov/vuln/detail/CVE-2022-31051
github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x
ubuntu.com/security/CVE-2021-33623
ubuntu.com/security/notices/USN-5999-1