{"id":"GHSA-gmq8-994r-jv83","summary":"yauzl contains an off-by-one error","details":"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 \u003c data.length + 4 instead of cursor + 4 \u003c= 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.","aliases":["CVE-2026-31988"],"modified":"2026-09-10T03:50:39.202483418Z","published":"2026-03-12T00:31:17Z","database_specific":{"nvd_published_at":"2026-03-11T23:16:00Z","cwe_ids":["CWE-193"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-03-13T18:58:11Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31988"},{"type":"WEB","url":"https://github.com/thejoshwolfe/yauzl/commit/c4695215b05c6adffda613b9051a2a85429b33fe"},{"type":"PACKAGE","url":"https://github.com/thejoshwolfe/yauzl"},{"type":"WEB","url":"https://www.codeant.ai/security-research/yauzl-denial-of-service-zip-file-crash"},{"type":"WEB","url":"https://www.npmjs.com/package/yauzl"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/yauzl-denial-of-service-via-off-by-one-error-in-ntfs-timestamp-parser"}],"affected":[{"package":{"name":"yauzl","ecosystem":"npm","purl":"pkg:npm/yauzl"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.2.0"},{"fixed":"3.2.1"}]}],"versions":["3.2.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-gmq8-994r-jv83/GHSA-gmq8-994r-jv83.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V4","score":"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"}]}