NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-54314: n8n: Denial of Service via ZIP decompression in webhook workflow

mediumCVSS 4.0 6.3 · 3.1 5.9GHSA-jqpw-qww5-cj4c

n8n's Compression node expanded archives in memory with no cap on decompressed size. An unauthenticated attacker can send a small, highly compressed archive to a public webhook workflow that uses the node, exhaust memory and kill the n8n process. Fixed in n8n 2.24.0.

Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Nov 2, 2026

What an attacker can do

The Decompress operation unpacked attacker-controlled archives straight into memory. A zip bomb is a few kilobytes on the wire and gigabytes once expanded, so one request can use up the memory of the n8n process. The process terminates.

n8n runs all workflows in one instance, so the crash is not limited to the one workflow. Every workflow on the instance stops until n8n restarts. If a restart policy brings it back, the attacker can repeat the request and keep it down.

The attacker needs no account. They need a public webhook URL, with no authentication, whose workflow feeds uploaded files into the Compression node's Decompress operation. The impact is availability only, with no data exposure. Attack complexity is rated high in the 3.1 vector, since the attacker must find such a webhook. Instances that take file uploads from the internet, such as intake forms or email attachment relays, are the realistic targets.

Who is affected

n8n on npm below 2.24.0. Exposure requires a workflow with the Compression node set to Decompress that can be triggered from a public, unauthenticated webhook. Check your version:

npm ls n8n

Then search workflows for the Compression node and trace what feeds it.

n8n

Ecosystem
npm
Affected
< 2.24.0
Fixed in
2.24.0
Check
npm ls n8n

How to fix it

Upgrade to n8n 2.24.0 or later.

npm install -g [email protected]

The fix adds two settings: N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES caps decompressed output and N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES caps ZIP entry count. The advisory gives no default values, so check them for your release and set limits that suit your workloads.

Temporary options from the advisory, which it says do not fully fix the risk: disable the node with n8n-nodes-base.compression in NODES_EXCLUDE, or require authentication on public webhook workflows that accept archives.

How to tell if you were hit

The advisory lists no indicators. Look for unexplained n8n process exits or restarts, out-of-memory kills (Out of memory in kernel logs, container exit code 137), and a short-lived rise in memory just before each crash. Check webhook access logs for small archive uploads from unknown sources to endpoints that feed the Compression node, followed by gaps in executions.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The Compression node's Decompress operation expanded attacker-controlled archives into memory without enforcing limits on decompressed output size. An unauthenticated attacker could send a small compressed archive to a public webhook workflow using this node, causing the n8n process to terminate due to memory exhaustion and disrupting all workflows in the same instance.

Patches

The issue has been fixed in n8n version 2.24.0. Users should upgrade to this version or later to remediate the vulnerability. The fix introduces configurable limits on decompressed output size (N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES) and ZIP entry count (N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES).

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Disable the Compression node by adding n8n-nodes-base.compression to the NODES_EXCLUDE environment variable.
  • Restrict public webhook workflows that accept archive file uploads to authenticated endpoints only.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Questions

Does CVE-2026-54314 need authentication?

No. An unauthenticated attacker can exploit it through a public webhook workflow that passes uploaded archives to the Compression node's Decompress operation.

What new settings does the n8n 2.24.0 fix add?

N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES to cap decompressed output, and N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES to cap ZIP entries. The advisory does not state their defaults.

Does a crash affect only one workflow?

No. The advisory says the n8n process terminates, which disrupts all workflows on the same instance.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries