CVE-2023-26115
JavaScript vulnerability analysis and mitigation

Overview

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. The vulnerability was disclosed on November 28, 2022, and published on March 22, 2023, affecting all versions before 1.2.4 (Snyk Advisory).

Technical details

The vulnerability stems from an insecure regular expression implementation within the result variable. While the regex is vulnerable on its own, the vulnerable function is not directly reachable as shipped in the package. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) by NVD and 5.3 (MEDIUM) by Snyk, with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

When exploited, this vulnerability can lead to a Denial of Service condition through excessive CPU consumption. The attack can cause the service to work very slowly, with performance degradation exponentially related to input size. While repeated exploitation is possible, the attacker does not have the ability to completely deny service to legitimate users (Snyk Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade the word-wrap package to version 1.2.4 or higher, which contains the fix for this vulnerability (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management