7.5
HIGH CVSS 3.1
CVE-2021-33623
Node.js Trim-Newlines ReDoS
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.

INFO

Published Date :

May 28, 2021, 6:15 p.m.

Last Modified :

Nov. 21, 2024, 6:09 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2021-33623 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Netapp e-series_performance_analyzer
1 Trim-newlines_project trim-newlines
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
Solution
This vulnerability can be remediated by updating the node-trim-newlines package.
  • Update the node-trim-newlines package.
  • Upgrade the affected packages.
Public PoC/Exploit Available at Github

CVE-2021-33623 has a 8 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-33623.

URL Resource
https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Patch Release Notes
https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html Mailing List Third Party Advisory
https://security.netapp.com/advisory/ntap-20210702-0007/ Third Party Advisory
https://www.npmjs.com/package/trim-newlines Product
https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Patch Release Notes
https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html Mailing List Third Party Advisory
https://security.netapp.com/advisory/ntap-20210702-0007/ Third Party Advisory
https://www.npmjs.com/package/trim-newlines Product
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-33623 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-33623 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Java CSS HTML JavaScript

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : Aug. 16, 2025, 1:48 p.m. This repo has been linked 10 different CVEs too.

None

Updated: 3 weeks, 3 days ago
0 stars 0 fork 0 watcher
Born at : July 30, 2025, 10:24 p.m. This repo has been linked 7 different CVEs too.

None

Java CSS HTML JavaScript

Updated: 2 weeks ago
0 stars 0 fork 0 watcher
Born at : July 12, 2025, 4:07 p.m. This repo has been linked 10 different CVEs too.

None

Java CSS HTML JavaScript

Updated: 1 month, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : July 2, 2025, 12:10 p.m. This repo has been linked 10 different CVEs too.

None

Java JavaScript CSS HTML

Updated: 3 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : April 29, 2025, 3:31 a.m. This repo has been linked 7 different CVEs too.

None

Java JavaScript HTML CSS

Updated: 11 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Sept. 5, 2024, 1:09 p.m. This repo has been linked 7 different CVEs too.

Damn Vulnerable SCA Application

application-security product-security sast sca software-composition-analysis software-supply-chain-security supply-chain-security scagoat

JavaScript Java CSS HTML

Updated: 1 month, 2 weeks ago
39 stars 28 fork 28 watcher
Born at : Feb. 9, 2024, 8:21 p.m. This repo has been linked 10 different CVEs too.

Automatic monitor github cve using Github Actions

Python

Updated: 5 months, 4 weeks ago
2 stars 55 fork 55 watcher
Born at : April 7, 2021, 11:16 a.m. This repo has been linked 1008 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-33623 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-33623 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1
    Added Reference https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html
    Added Reference https://security.netapp.com/advisory/ntap-20210702-0007/
    Added Reference https://www.npmjs.com/package/trim-newlines
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Mar. 01, 2023

    Action Type Old Value New Value
    Changed Reference Type https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Patch, Release Notes, Third Party Advisory https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Patch, Release Notes
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html Mailing List, Third Party Advisory
    Changed Reference Type https://www.npmjs.com/package/trim-newlines Product, Third Party Advisory https://www.npmjs.com/package/trim-newlines Product
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Dec. 23, 2022

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html [No Types Assigned]
  • CWE Remap by [email protected]

    May. 03, 2022

    Action Type Old Value New Value
    Changed CWE NVD-CWE-noinfo CWE-400
  • Modified Analysis by [email protected]

    Dec. 01, 2021

    Action Type Old Value New Value
    Changed Reference Type https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Release Notes, Third Party Advisory https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Patch, Release Notes, Third Party Advisory
    Changed Reference Type https://security.netapp.com/advisory/ntap-20210702-0007/ No Types Assigned https://security.netapp.com/advisory/ntap-20210702-0007/ Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jul. 02, 2021

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20210702-0007/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Jun. 04, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:N/A:P)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 No Types Assigned https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 Release Notes, Third Party Advisory
    Changed Reference Type https://www.npmjs.com/package/trim-newlines No Types Assigned https://www.npmjs.com/package/trim-newlines Product, Third Party Advisory
    Added CWE NIST NVD-CWE-noinfo
    Added CPE Configuration OR *cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:* versions up to (excluding) 3.0.1 *cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:* versions from (including) 4.0.0 up to (excluding) 4.0.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

1.26 }} -0.04%

score

0.78488

percentile