CVE-2026-106070
Beschrijving NL
Een fout in de Node.js `zlib.ZipFile` API kan ervoor zorgen dat het bytes retourneert die niet tot de gevraagde invoer behoren nadat de lokale en centrale headervalidatie is mislukt. Wanneer `zipEntry.modified` wordt gelezen in een archief waarvan de lokale header niet overeenkomt met de centrale map, hetzij direct, hetzij tijdens het comprimeren van het archief, wordt de validatiefout opgevangen, maar wordt de geparseerde lokale header in de cache geplaatst zonder een inhoudsverschuiving. Bij een latere inhoudslezing worden vervolgens door de aanvaller gecontroleerde bytes vanaf het begin van het bestand geretourneerd in plaats van het archief te weigeren, en de CRC-32-verificatie slaagt nog steeds omdat de aanvaller de CRC van de centrale directory beheert. Een op Node.js gebaseerde scanner kan daarom andere inhoud goedkeuren dan wat een andere ZIP-implementatie uit hetzelfde archief extraheert. Deze kwetsbaarheid treft Node.js **26.x**.
Origineel (Engels) tonen
A flaw in the Node.js `zlib.ZipFile` API can cause it to return bytes that do not belong to the requested entry after the local and central header validation fails.
When `zipEntry.modified` is 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**.