CVE-2026-31988 Details
Description
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.
A denial-of-service vulnerability has been identified in yauzl (Yet Another Unzip Library) version 3.2.0 for Node.js. The issue arises from an off-by-one error in the NTFS extended timestamp extra field parser within the getLastModDate() function. The vulnerability allows a remote attacker to cause a process crash by sending a crafted zip file with a malformed NTFS extra field. This issue affects any Node.js application that processes zip file uploads and calls entry.getLastModDate() on the parsed entries.
Users are advised to update yauzl to version 3.2.1 or later. If an immediate upgrade is not possible, wrap calls to entry.getLastModDate() in a try/catch block to handle potential exceptions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 11, 2026CISA-ADP
Assessed Mar 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.codeant.ai/security-research/yauzl-denial-of-service-zip-file-crash | CISA-ADP | ExploitRemedyTechnical Analysis |
| https://github.com/thejoshwolfe/yauzl/commit/c4695215b05c6adffda613b9051a2a85429b33fe | [email protected] | Source CodeVendor |
| https://www.codeant.ai/security-research/yauzl-denial-of-service-zip-file-crash | [email protected] | ExploitRemedyTechnical Analysis |
| https://www.npmjs.com/package/yauzl | [email protected] | ProductVendor |
| https://www.vulncheck.com/advisories/yauzl-denial-of-service-via-off-by-one-error-in-ntfs-timestamp-parser | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-193 | Off-by-one Error | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| thejoshwolfe yauzl | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 12, 2026 | CVE Modified | CISA-ADP |
| Mar 11, 2026 | New CVE Received | [email protected] |
Volerion