VDB

CVE-2021-33623

CVE-2021-33623 PUBLISHED CVSS 7.5 HIGH

Uncontrolled Resource Consumption in trim-newlines

Reported by mitre · Published May 28, 2021

trim-newlines is fixed in 4.0.1 and 3.0.1 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
trim-newlinesnpm4.0.1, 3.0.1
trim-newlinestrim-newlines_project4.0.1, 3.0.1
node-trim-newlinesUbuntu:18.04:LTS1.0.0-1ubuntu0.18.04.1

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
sindresorhustrim-newlines
n/an/a*
npmtrim-newlines0, 4.0.0
chainguardpy3-captum0

Timeline

  • May 28, 2021 CVE Published
  • May 29, 2021 EPSS Score (30 in total, the first dated here)
  • Apr 7, 2022 PoC Published (4 in total, the first dated here)
  • Mar 1, 2023 CVE Updated
  • Mar 7, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (5 in total, the first dated here)
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-33623
vulnetix vdb fixes CVE-2021-33623

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-33623/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›