CVEfocus › CVE database › CVE-2021-33623

CVE-2021-33623

CVSS 7.5 HighEPSS 2.9% (higher than 88% of CVEs)Published 2021-05-28Updated 2024-08-03Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Ubuntu, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
1Fix pending
2Under investigation
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-trim-newlinesFix pendingUBUNTU-CVE-2021-33623
Ubuntu 26.04node-trim-newlinesUnder investigationUBUNTU-CVE-2021-33623
Ubuntu 25.10node-trim-newlinesWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-33623
Ubuntu 24.04node-trim-newlinesUnder investigationUBUNTU-CVE-2021-33623
Ubuntu 22.04node-trim-newlinesNot affected
vulnerable_code_not_present
Ubuntu 20.04node-trim-newlinesFixed1.0.0-1ubuntu0.20.04.1UBUNTU-CVE-2021-33623
Ubuntu 18.04node-trim-newlinesFixed1.0.0-1ubuntu0.18.04.1UBUNTU-CVE-2021-33623
Debian 14node-trim-newlinesFixed3.0.0+~3.0.0-1DEBIAN-CVE-2021-33623
Debian 13node-trim-newlinesFixed3.0.0+~3.0.0-1DEBIAN-CVE-2021-33623
Debian 12node-trim-newlinesFixed3.0.0+~3.0.0-1DEBIAN-CVE-2021-33623
npm librarytrim-newlinesFixed4.0.1GHSA-7p7h-4mm5-852v

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.