cve.bz

CVE-2026-31988 thejoshwolfe yauzl: Off-by-one Error

6.9 mediumEPSS 0.7%Fix available

Medium (6.9) in thejoshwolfe yauzl. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in yauzl 3.2.1.

On this page
yauzl (aka Yet Another Unzip Library) version 3.2.0 for Node.js contains an off-by-one error in the NTFS extended timestamp extra field parser within the getLastModDate() function. The while loop condition checks cursor < data.length + 4 instead of cursor + 4 <= data.length, allowing readUInt16LE() to read past the buffer boundary. A remote attacker can cause a denial of service (process crash via ERR_OUT_OF_RANGE exception) by sending a crafted zip file with a malformed NTFS extra field. This affects any Node.js application that processes zip file uploads and calls entry.getLastModDate() on parsed entries. Fixed in version 3.2.1.

Severity

CVSS 4.0

6.9 medium
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

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.7% (up from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-03-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • yauzl (npm): fixed in 3.2.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-31988 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31988?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31988?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31988 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
thejoshwolfe yauzlfrom 3.2.0 before 3.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gmq8-994r-jv83npmyauzl>=3.2.0 <3.2.13.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morenode-yauzlno fix listedUBUNTU-CVE-2026-31988

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate: This flaw in yauzl can lead to a denial of service in Node.js applications that process zip file uploads and specifically call `entry.getLastModDate()` on parsed entries. Red Hat products that utilize the affected `yauzl` library in this manner are susceptible to a process crash when handling a specially crafted zip file containing a malformed NTFS extra field.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Developer Hub 1.10rhdh/rhdh-hub-rhel9:1780930740Fixed 2026-06-09RHSA-2026:24841
Cryostat 4cryostat-openshift-console-plugin-npmFix deferred
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Fix deferred
Red Hat Build of Podman Desktoprh-podman-desktop.gitFix deferred
Red Hat Developer Hub 1rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processorFix deferred
Red Hat Enterprise Linux 10rustFix deferred
Red Hat Enterprise Linux 8grafanaFix deferred
Red Hat Enterprise Linux 9grafanaOut of support scope
Red Hat Enterprise Linux 9rustFix deferred
Red Hat Fuse 7yauzlFix deferred
Red Hat JBoss Enterprise Application Platform Expansion PackyauzlFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Fix deferred
Red Hat Openshift Data Foundation 4odf4/mcg-core-rhel8Fix deferred
Red Hat Openshift Data Foundation 4odf4/mcg-core-rhel9Fix deferred
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Fix deferred
Red Hat Trusted Profile Analyzerrhtpa/rhtpa-trustification-service-rhel9Fix deferred
Self-service automation portal 2ansible-automation-platform/automation-portalFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31988.

References

Check your stackJSON