Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. word-wrap
  4. ›
  5. CVE-2023-26115

CVE-2023-26115: word-wrap vulnerable to Regular Expression Denial of Service

June 22, 2023 (updated February 13, 2025)

All versions of the package word-wrap are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression within the result variable.

References

  • github.com/advisories/GHSA-j8xg-fqg3-53r7
  • github.com/jonschlinkert/word-wrap
  • github.com/jonschlinkert/word-wrap/blob/master/index.js
  • github.com/jonschlinkert/word-wrap/blob/master/index.js%23L39
  • github.com/jonschlinkert/word-wrap/commit/420dce9a2412b21881202b73a3c34f0edc53cb2e
  • github.com/jonschlinkert/word-wrap/releases/tag/1.2.4
  • nvd.nist.gov/vuln/detail/CVE-2023-26115
  • security.netapp.com/advisory/ntap-20240621-0006
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-4058657
  • security.snyk.io/vuln/SNYK-JS-WORDWRAP-3149973

Code Behaviors & Features

Detect and mitigate CVE-2023-26115 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.4

Fixed versions

  • 1.2.4

Solution

Upgrade to version 1.2.4 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/word-wrap/CVE-2023-26115.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:30 +0000.