CVE-2026-31988: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-31988 is a denial-of-service vulnerability in yauzl (Yet Another Unzip Library) version 3.2.0 for Node.js, caused by an off-by-one error in the NTFS extended timestamp extra field parser. The flaw exists within the getLastModDate() function, where an incorrect while loop boundary condition allows a buffer overread. It was published on March 11, 2026, and affects yauzl 3.2.0, with a fix released in version 3.2.1. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (Feedly, VulnCheck).

Technical details

The root cause is an off-by-one error (CWE-193) in the NTFS extra field parser within yauzl's getLastModDate() function. The while loop condition incorrectly checks cursor < data.length + 4 instead of the safe cursor + 4 <= data.length, allowing readUInt16LE() to read past the end of the allocated buffer. When a crafted zip file containing a malformed NTFS extra field is processed, this out-of-bounds read triggers an ERR_OUT_OF_RANGE exception, crashing the Node.js process. The bug was discovered by CodeAnt AI Code Reviewer and fixed in commit c4695215b05c6adffda613b9051a2a85429b33fe (GitHub Commit, CodeAnt Research).

Impact

Successful exploitation results in a denial of service — specifically, a process crash via an unhandled ERR_OUT_OF_RANGE exception in the Node.js runtime. Any application that accepts zip file uploads and calls entry.getLastModDate() on parsed entries is vulnerable, potentially making services unavailable to legitimate users. There is no impact on confidentiality or integrity; the vulnerability is limited to availability (Feedly, VulnCheck).

Exploitability

No public exploit code or in-the-wild exploitation has been reported for CVE-2026-31988. The EPSS score is approximately 0.001 (0.1%), indicating a very low probability of exploitation in the near term. The vulnerability requires no authentication and no user interaction, as an attacker only needs to submit a crafted zip file to a vulnerable endpoint. It is not listed in the CISA Known Exploited Vulnerabilities catalog (Feedly).

Exploitation steps

  1. Reconnaissance: Identify Node.js web applications that accept zip file uploads and use the yauzl library version 3.2.0 for parsing (e.g., via npm package inspection or application fingerprinting).
  2. Craft malicious zip file: Create a zip file with a malformed NTFS extra field in a local file header or central directory entry, specifically crafting the NTFS extra field data length to be just short of the 4-byte boundary required by readUInt16LE(), triggering the off-by-one condition.
  3. Submit the file: Upload the crafted zip file to the target application's file upload endpoint via HTTP POST or any other supported upload mechanism.
  4. Trigger the crash: The application processes the zip file and calls entry.getLastModDate() on the parsed entry; the malformed NTFS extra field causes readUInt16LE() to read past the buffer boundary, throwing an ERR_OUT_OF_RANGE exception and crashing the Node.js process (CodeAnt Research, VulnCheck).

Indicators of compromise

  • Logs: Node.js application logs showing unhandled ERR_OUT_OF_RANGE exceptions originating from the yauzl getLastModDate() function or NTFS extra field parsing code; repeated process crashes or restarts in application/process manager logs (e.g., PM2, systemd).
  • Network: Repeated HTTP POST requests to file upload endpoints with zip files of unusual or minimal size; multiple requests from the same source IP triggering application crashes.
  • Process: Unexpected Node.js process terminations or restarts correlated with zip file upload activity; crash dump files generated by the Node.js runtime.

Mitigation and workarounds

The primary remediation is to upgrade yauzl to version 3.2.1, which corrects the off-by-one error in the NTFS timestamp parser (GitHub Commit). IBM has released patches for affected products including IBM API Connect, IBM App Connect Enterprise Certified Container, IBM Cloud Pak for AIOps, and IBM QRadar Suite Software (IBM Advisory, IBM CloudPak Advisory). As a temporary workaround where upgrading is not immediately possible, applications can validate zip file structure and reject malformed entries before calling entry.getLastModDate(), or avoid calling that function on untrusted input.

Community reactions

The vulnerability was discovered by CodeAnt AI Code Reviewer, which published a dedicated security research post detailing the bug (CodeAnt Research). VulnCheck assigned the CVE and published an advisory. IBM issued multiple security bulletins for its enterprise products that bundle yauzl as a dependency, reflecting the library's broad use in enterprise Node.js ecosystems (IBM Advisory). Community reaction has been limited given the moderate severity and narrow impact scope.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

node-yauzl

Fixed

sid

node-yauzl

Fixed

trixie

node-yauzl

Fixed

Ubuntu

Unknown

bionic (esm-apps)

node-yauzl

Unknown

devel

node-yauzl

Unknown

focal (esm-apps)

node-yauzl

Unknown

jammy

node-yauzl

Unknown

jammy (esm-apps)

node-yauzl

Unknown

noble

node-yauzl

Unknown

noble (esm-apps)

node-yauzl

Unknown

resolute

node-yauzl

Unknown

RHEL / CentOS

Affected

OpenShift

odf4/mcg-core-rhel8

Affected

RHEL 8

grafana.src

Affected

RHEL 9

grafana.src

Affected

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-966w-4vpf-p7hcHIGH7.1
  • JavaScript logoJavaScript
  • @aloma.io/aloma
NoYesOct 25, 2026
GHSA-mrwp-f3q8-3g9pMEDIUM5.9
  • JavaScript logoJavaScript
  • follow-redirects
NoYesOct 25, 2026
GHSA-hfm3-x63j-7fxpHIGHN/A
  • JavaScript logoJavaScript
  • @payload-auth-link/migrate
NoYesOct 25, 2026
GHSA-6244-vvv9-76f5MEDIUMN/A
  • JavaScript logoJavaScript
  • @payload-auth-link/plugin
NoYesOct 25, 2026
GHSA-q53q-qg98-p9jfHIGHN/A
  • JavaScript logoJavaScript
  • llm-fw
NoYesOct 25, 2026

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

Additional Wiz resources

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