Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-26115

CVE-2023-26115: Word-wrap ReDoS Vulnerability

CVE-2023-26115 is a Regular Expression Denial of Service (ReDoS) vulnerability in Word-wrap that allows attackers to cause service disruption. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-26115 Overview

CVE-2023-26115 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting all versions of the word-wrap npm package. The vulnerability exists due to the usage of an insecure regular expression within the result variable of the package's core functionality. When processing specially crafted input strings, attackers can cause catastrophic backtracking in the regex engine, leading to excessive CPU consumption and potential service disruption.

Critical Impact

Applications using the word-wrap package can be rendered unresponsive through malicious input, causing denial of service conditions that affect availability of Node.js applications and services.

Affected Products

  • word-wrap (all versions prior to 1.2.4) for Node.js
  • org.webjars.npm:word-wrap (Java WebJars distribution)
  • Any application with word-wrap as a direct or transitive dependency

Discovery Timeline

  • June 22, 2023 - CVE-2023-26115 published to NVD
  • February 13, 2025 - Last updated in NVD database

Technical Details for CVE-2023-26115

Vulnerability Analysis

This vulnerability is classified as CWE-1333 (Inefficient Regular Expression Complexity). The word-wrap package is a popular utility used for wrapping text at a specified column width, commonly employed in CLI tools, documentation generators, and text formatting applications.

The vulnerable code path is triggered when the package processes input through its text wrapping functionality. The regular expression used within the result variable exhibits polynomial or exponential time complexity when evaluated against certain input patterns. This is a classic ReDoS condition where the regex engine enters a state of catastrophic backtracking.

Attackers can exploit this vulnerability remotely by providing malicious input to any application endpoint that processes user-controlled strings through the word-wrap package. No authentication is required, and the attack can be executed over the network, making it particularly dangerous for publicly accessible applications.

Root Cause

The root cause of this vulnerability lies in the design of a regular expression pattern within the word-wrap package's index.js file at line 39. The regex contains nested quantifiers or overlapping alternations that allow the regex engine to explore an exponentially growing number of possible matches when processing adversarial input. This computational inefficiency is inherent to many regex engines that use backtracking algorithms, and can be triggered by input strings specifically crafted to maximize backtracking operations.

Attack Vector

The attack vector for CVE-2023-26115 is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an application that uses the word-wrap package to process user-supplied input
  2. Crafting a malicious string designed to trigger catastrophic backtracking in the vulnerable regex
  3. Submitting this payload through any input mechanism (HTTP request, API call, form submission, etc.)
  4. The application's CPU becomes saturated processing the regex, causing service degradation or complete denial of service

The vulnerability affects the availability of the system but does not compromise confidentiality or integrity of data. Due to the network accessibility and lack of required privileges, this vulnerability is particularly impactful for public-facing Node.js applications.

Detection Methods for CVE-2023-26115

Indicators of Compromise

  • Abnormally high CPU utilization on Node.js application servers without corresponding increase in legitimate traffic
  • Application process hangs or timeouts occurring specifically in text processing operations
  • Repeated requests containing unusually long or specially formatted strings targeting text wrapping functionality
  • Log entries showing request timeouts or process terminations in modules related to text formatting

Detection Strategies

  • Implement Software Composition Analysis (SCA) scanning to identify word-wrap dependencies in your codebase using tools like npm audit, Snyk, or OWASP Dependency-Check
  • Monitor application performance metrics for sudden CPU spikes that correlate with specific request patterns
  • Deploy Web Application Firewall (WAF) rules to detect and block requests containing potential ReDoS payloads
  • Use static analysis tools that can identify vulnerable regex patterns in your application's dependencies

Monitoring Recommendations

  • Set up alerting for CPU utilization thresholds on Node.js application processes
  • Implement request timeout monitoring to detect hanging requests that may indicate ReDoS exploitation attempts
  • Review application logs for patterns of failed or timed-out requests, particularly those involving text processing endpoints
  • Monitor dependency vulnerability databases for updates related to word-wrap and similar text processing libraries

How to Mitigate CVE-2023-26115

Immediate Actions Required

  • Upgrade the word-wrap package to version 1.2.4 or later, which contains the security fix for this vulnerability
  • Run npm audit or equivalent package auditing tools to identify all instances of vulnerable word-wrap versions in your dependency tree
  • Review transitive dependencies that may include word-wrap as an indirect dependency
  • Implement input validation and length limits on user-supplied strings before processing through text wrapping functions

Patch Information

The word-wrap maintainers have released version 1.2.4 which addresses this ReDoS vulnerability. The patch information is available in the GitHub Release Notes. Organizations should update their package.json dependencies to require word-wrap@^1.2.4 or later.

For Java applications using the WebJars distribution, update to the corresponding patched version through your Maven or Gradle configuration.

Additional security guidance is available from Snyk's JavaScript vulnerability advisory and NetApp's Security Advisory.

Workarounds

  • Implement input length restrictions on any user-supplied strings before they reach the word-wrap function to limit the potential for ReDoS exploitation
  • Use request timeout mechanisms to terminate long-running operations that may indicate a ReDoS attack in progress
  • Consider using alternative text wrapping libraries that have been audited for regex safety until the package can be updated
  • Deploy rate limiting on endpoints that process user text to reduce the impact of potential exploitation attempts
bash
# Update word-wrap to patched version
npm update word-wrap

# Verify the installed version is 1.2.4 or later
npm list word-wrap

# Run security audit to check for remaining vulnerabilities
npm audit

# Force resolution of transitive dependencies (if using npm 8.3+)
npm pkg set overrides.word-wrap="^1.2.4"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechWord Wrap

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Technical References
  • GitHub Code Reference

  • GitHub Release Note

  • NetApp Security Advisory

  • Snyk Java Vulnerability

  • Snyk JavaScript Vulnerability
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English