Every CVE Search/ Get API key

CVE-2021-33623

Uncontrolled Resource Consumption in trim-newlines

7.5 HighFix available

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

2.93%Up 2.3 points since May 29, 2021
90%50%10%1%

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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
trim-newlines
npm
before 3.0.1
3.0.1
trim-newlines
npm
4.0.0 to 4.0.0
4.0.1
trim-newlines
TuxCare: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-newlines
TuxCare: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-newlines
TuxCare: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-newlines
Debian:12
before 3.0.0+~3.0.0-1
3.0.0+~3.0.0-1
node-trim-newlines
Debian:13
before 3.0.0+~3.0.0-1
3.0.0+~3.0.0-1
node-trim-newlines
Debian:14
before 3.0.0+~3.0.0-1
3.0.0+~3.0.0-1
node-trim-newlines
Debian:10
before 1.0.0-1+deb10u1, plus listed versions
1.0.0-1
1.0.0-1+deb10u1
trim-newlines
npm
4.0.0 up to 4.0.1
4.0.1
Show 12 moreShow less
Affected packages
PackageAffectedFixed
ovirt-web-ui
Red 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-dependencies
Red 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-compress
Red 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-javadoc
Red 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-newlines
Root:npm
before 1.0.0-root.io.1
1.0.0-root.io.11.0.0-root.io.2
trim-newlines
Root:npm
before 1.0.0-aikido.2
1.0.0-aikido.2
node-trim-newlines
Ubuntu: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-newlines
Ubuntu: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-newlines
Ubuntu:24.04:LTS
All versions, plus listed versions
3.0.0+~3.0.0-1
None known
node-trim-newlines
Ubuntu:25.10
All versions, plus listed versions
3.0.0+~3.0.0-1
None known
node-trim-newlines
Ubuntu:26.10
All versions, plus listed versions
3.0.0+~3.0.0-1
None known
node-trim-newlines
Ubuntu:26.04:LTS
All versions, plus listed versions
3.0.0+~3.0.0-1
None known

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 77 moreShow less
MoveEnter Open