Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. trim-newlines
  4. ›
  5. CVE-2021-33623

CVE-2021-33623: Regular Expression Denial of Service (ReDoS)

May 28, 2021 (updated March 1, 2023)

The trim-newlines package for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-33623

Code Behaviors & Features

Detect and mitigate CVE-2021-33623 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.0.1, all versions starting from 4.0.0 before 4.0.1

Fixed versions

  • 3.0.1
  • 4.0.1

Solution

Upgrade to versions 3.0.1, 4.0.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/trim-newlines/CVE-2021-33623.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:04 +0000.