{"record":{"id":"edab5d56038b1a68","repo":"n8n-io/n8n","slug":"filename-declares-a-zip64-sized-entry-refusi","errorCode":null,"errorMessage":"\"${fileName}\" declares a ZIP64-sized entry; refusing to parse a potential decompression bomb.","messagePattern":"\"(.+?)\" declares a ZIP64-sized entry; refusing to parse a potential decompression bomb\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/parsers/ooxml-guard.ts","lineNumber":56,"sourceCode":"\n\tconst entryCount = buffer.readUInt16LE(eocd + 10);\n\tif (entryCount > MAX_OOXML_ENTRIES) {\n\t\tthrow new Error(\n\t\t\t`\"${fileName}\" has too many archive entries (${entryCount} > ${MAX_OOXML_ENTRIES}); refusing to parse a potential decompression bomb.`,\n\t\t);\n\t}\n\n\tlet offset = buffer.readUInt32LE(eocd + 16);\n\tlet totalUncompressed = 0;\n\tfor (let i = 0; i < entryCount; i++) {\n\t\tif (offset + CENTRAL_FILE_HEADER_MIN_SIZE > buffer.length) break;\n\t\tif (buffer.readUInt32LE(offset) !== CENTRAL_FILE_HEADER_SIGNATURE) break;\n\n\t\tconst uncompressed = buffer.readUInt32LE(offset + 24);\n\t\t// A ZIP64 marker means the real size doesn't fit in 32 bits (>= 4 GB) — well\n\t\t// past any sane bound, so reject without decoding the ZIP64 extra field.\n\t\tif (uncompressed === ZIP64_SIZE_MARKER) {\n\t\t\tthrow new Error(\n\t\t\t\t`\"${fileName}\" declares a ZIP64-sized entry; refusing to parse a potential decompression bomb.`,\n\t\t\t);\n\t\t}\n\n\t\ttotalUncompressed += uncompressed;\n\t\tif (totalUncompressed > MAX_OOXML_UNCOMPRESSED_BYTES) {\n\t\t\tthrow new Error(\n\t\t\t\t`\"${fileName}\" decompresses to more than ${formatMB(MAX_OOXML_UNCOMPRESSED_BYTES)}; refusing to parse a potential decompression bomb.`,\n\t\t\t);\n\t\t}\n\n\t\tconst nameLen = buffer.readUInt16LE(offset + 28);\n\t\tconst extraLen = buffer.readUInt16LE(offset + 30);\n\t\tconst commentLen = buffer.readUInt16LE(offset + 32);\n\t\toffset += CENTRAL_FILE_HEADER_MIN_SIZE + nameLen + extraLen + commentLen;\n\t}\n}\n","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/parsers/ooxml-guard.ts#L38-L74","documentation":"Error \"\"${fileName}\" declares a ZIP64-sized entry; refusing to parse a potential decompression bomb.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/parsers/ooxml-guard.ts:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}