cve.bz

CVE-2021-33623 Uncontrolled Resource Consumption

7.5 highEPSS 2.9%Fix available

High (7.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in trim-newlines 3.0.1, 4.0.1.

On this page
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.

Severity

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
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-33623 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-33623?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-33623?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-33623 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
trim-newlines_project:trim-newlinesbefore 3.0.1
trim-newlines_project:trim-newlinesfrom 4.0.0 before 4.0.1
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7p7h-4mm5-852vnpmtrim-newlines<3.0.13.0.1
GHSA-7p7h-4mm5-852vnpmtrim-newlines>=4.0.0 <4.0.14.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-trim-newlines1.0.0-1+deb10u1DLA-3247-1
Debian12, 13, 14node-trim-newlines3.0.0+~3.0.0-1DEBIAN-CVE-2021-33623
Ubuntu18.04:LTSnode-trim-newlines1.0.0-1ubuntu0.18.04.1UBUNTU-CVE-2021-33623 USN-5999-1
Ubuntu20.04:LTSnode-trim-newlines1.0.0-1ubuntu0.20.04.1UBUNTU-CVE-2021-33623 USN-5999-1
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morenode-trim-newlinesno fix listedUBUNTU-CVE-2021-33623
Red Hatrhev_manager:4.4:el8apache-commons-compress, apache-commons-compress-javadoc0:1.21-1.2.el8evRHSA-2022:5555
Red Hatrhev_manager:4.4:el8ovirt-dependencies0:4.5.2-1.el8evRHSA-2022:5555
Red Hatrhev_manager:4.4:el8ovirt-web-ui0:1.9.0-1.el8evRHSA-2022:5555

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

OpenShift Container Platform (OCP) grafana-container does package a vulnerable verison of nodejs trim-newlines. However due to the instance being read only and behind OpenShift OAuth, the impact by this vulnerability is Low. Red Hat Advanced Cluster Management for Kubernetes (ACM) containers affected by this flaw are only accessible to authenticated users, thus the impact of this vulnerability is Low.

Red Hat Virtualization (RHV) does package a vulnerable version of nodejs-trim-newlines. However, no untrusted content is being parsed therefore the impact of this vulnerability is Low.

The hosted services are shipped with the vulnerable packages, however the vulnerable methods were not identified in use at this time.

ProductPackageStateAdvisory
Red Hat Virtualization Engine 4.4ovirt-web-ui-0:1.9.0-1.el8evFixed 2022-07-14RHSA-2022:5555
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9:1782840519Fixed 2026-07-01RHSA-2026:34342
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-api-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-header-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-ui-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/mcm-topology-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-ui-rhel8Fix deferred
Red Hat Ansible Automation Platform 1.2trim-newlinesAffected
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaFix deferred
Red Hat Virtualization 4ovirt-engine-ui-extensionsFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-33623.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON