The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-31988

CVE-2026-31988: yauzl Node.js Library DoS Vulnerability

CVE-2026-31988 is a denial of service flaw in yauzl (Yet Another Unzip Library) for Node.js that allows attackers to crash applications via crafted zip files. This post covers technical details, affected versions, impact, and mitigation steps.

Published: March 13, 2026

CVE-2026-31988 Overview

CVE-2026-31988 is a denial of service vulnerability affecting yauzl (Yet Another Unzip Library) version 3.2.0 for Node.js. The vulnerability stems from an off-by-one error in the NTFS extended timestamp extra field parser within the getLastModDate() function. The flawed while loop condition checks cursor < data.length + 4 instead of the correct cursor + 4 <= data.length, allowing the readUInt16LE() function to read past the buffer boundary. This out-of-bounds read condition can be triggered by a remote attacker who sends a crafted zip file containing a malformed NTFS extra field, resulting in a process crash via an ERR_OUT_OF_RANGE exception.

Critical Impact

Remote attackers can crash Node.js applications that process zip file uploads by exploiting the off-by-one error to trigger an unhandled exception, causing service disruption.

Affected Products

  • yauzl version 3.2.0 for Node.js
  • Node.js applications using yauzl 3.2.0 that process zip file uploads
  • Applications calling entry.getLastModDate() on parsed zip entries

Discovery Timeline

  • 2026-03-11 - CVE-2026-31988 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-31988

Vulnerability Analysis

This vulnerability is classified under CWE-193 (Off-by-one Error), a common boundary condition error that occurs when an algorithm iterates one time too many or too few. In yauzl 3.2.0, the NTFS extended timestamp extra field parser within the getLastModDate() function contains a flawed loop boundary condition. The incorrect comparison allows the cursor to advance beyond safe buffer boundaries before the termination check occurs.

The root cause lies in the order of operations within the boundary check. By checking cursor < data.length + 4 rather than cursor + 4 <= data.length, the code fails to account for the space required to safely perform the subsequent readUInt16LE() operation. This allows reading 2 bytes beyond the allocated buffer when processing a specifically crafted NTFS extra field, triggering Node.js's built-in range protection and raising an ERR_OUT_OF_RANGE exception.

Root Cause

The vulnerability originates from an incorrect boundary validation in the while loop that parses NTFS extended timestamp data. The condition cursor < data.length + 4 is mathematically inverted from the safe check cursor + 4 <= data.length. This subtle difference means the loop can proceed even when insufficient bytes remain in the buffer for the next read operation. When an attacker provides a zip file with a truncated or malformed NTFS extra field, the parser attempts to read beyond buffer limits.

Attack Vector

The attack can be executed remotely over the network. An attacker constructs a malicious zip file containing an NTFS extra field with insufficient data bytes. When a vulnerable Node.js application receives this file and processes it using yauzl's entry.getLastModDate() method, the off-by-one error causes the parser to read beyond the buffer boundary.

The exploitation is straightforward since it only requires the ability to upload or transmit a zip file to a target application. No authentication is required, and user interaction is limited to normal file processing operations. The impact is constrained to availability—causing the Node.js process to crash with an unhandled exception—without directly compromising confidentiality or integrity.

Detection Methods for CVE-2026-31988

Indicators of Compromise

  • Unexpected Node.js process crashes with ERR_OUT_OF_RANGE exceptions in application logs
  • Stack traces pointing to yauzl's getLastModDate() function or NTFS timestamp parsing code
  • Increased volume of zip file uploads with unusually small or malformed NTFS extra fields
  • Application restarts correlating with zip file processing operations

Detection Strategies

  • Monitor application logs for ERR_OUT_OF_RANGE exceptions specifically occurring during zip file processing
  • Implement file upload validation to inspect NTFS extra field structures before passing to yauzl
  • Deploy runtime application self-protection (RASP) solutions to detect buffer boundary violations
  • Use software composition analysis (SCA) tools to identify yauzl version 3.2.0 in project dependencies

Monitoring Recommendations

  • Configure alerting for repeated process crashes in Node.js applications handling zip uploads
  • Monitor package.json and package-lock.json files for vulnerable yauzl versions across your environment
  • Implement centralized logging to correlate crash events with incoming file upload requests
  • Review npm audit outputs regularly for known vulnerabilities in dependencies

How to Mitigate CVE-2026-31988

Immediate Actions Required

  • Upgrade yauzl to version 3.2.1 or later, which contains the fix for this vulnerability
  • Run npm audit to identify all applications using the vulnerable yauzl version
  • Implement input validation for zip files before processing with yauzl
  • Consider adding try-catch blocks around getLastModDate() calls as a temporary defensive measure

Patch Information

The vulnerability has been fixed in yauzl version 3.2.1. The patch corrects the boundary condition in the while loop from cursor < data.length + 4 to cursor + 4 <= data.length, ensuring the readUInt16LE() operation cannot read beyond the buffer boundary. The fix is available via the GitHub commit.

Additional technical details are available from the Codeant Security Research, NPM Package Information, and VulnCheck Advisory.

Workarounds

  • Wrap all calls to entry.getLastModDate() in try-catch blocks to gracefully handle exceptions
  • Implement process supervisor tools (e.g., PM2, forever) to automatically restart crashed Node.js processes
  • Use an alternative zip parsing library that does not exhibit this vulnerability until upgrade is possible
  • Validate incoming zip files against a known-good structure before processing with yauzl
bash
# Upgrade yauzl to patched version
npm update yauzl@3.2.1

# Verify installed version
npm list yauzl

# Run security audit on project dependencies
npm audit

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechYauzl

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-193
  • Technical References
  • GitHub Commit Changes

  • Codeant Security Research

  • NPM Package Information

  • VulnCheck Advisory on Yauzl
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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