A flaw in the Node.js `zlib.ZipFile` API can cause it to...
Low severity
Unreviewed
Published
Oct 23, 2026
to the GitHub Advisory Database
•
Updated Oct 23, 2026
Description
Published by the National Vulnerability Database
Oct 23, 2026
Published to the GitHub Advisory Database
Oct 23, 2026
Last updated
Oct 23, 2026
A flaw in the Node.js
zlib.ZipFileAPI can cause it to return bytes that do not belong to the requested entry after the local and central header validation fails.When
zipEntry.modifiedis read on an archive whose local header does not match its central directory, either directly or while compacting the archive, the validation error is caught but the parsed local header is left cached without a content offset. A later content read then returns attacker-controlled bytes from the start of the file instead of rejecting the archive, and CRC-32 verification still passes because the attacker controls the central directory CRC. A Node.js-based scanner can therefore approve different content from what another ZIP implementation extracts from the same archive.This vulnerability affects Node.js 26.x.
References