n8n: a workflow expression escapes its sandbox, and the fix lives in the image's Node (GHSA-w6f8-8qh4-h3j4)
From the record.
Facts
- Alert note
- KB-N-0003 · AI applications
- Record published
- 2026-11-26 · GHSA-w6f8-8qh4-h3j4 published by n8n · source
- Fix
- 2026-11-19 · n8n 2.49.2 released, its default image on n8n's patched Node · source
- Fix
- 2026-11-24 · n8n 3.4.0 released · source
- Our test run
- 2026-11-27 · Our version check of the images and of an npm install, no exploit run
- GitHub advisory
- GHSA-w6f8-8qh4-h3j4
- Record
- GHSA-w6f8-8qh4-h3j4, project advisory, no CVE
- Severity
- High, CVSS 4.0 7.7 (network, low privileges), in the project advisory
- Affected
- As the record's version fields say: npm
n8nbefore 2.49.2; Dockern8nio/n8nbefore 3.4.0 - Fixed
- As the advisory's text says: the Docker images 2.49.2 and 3.4.0, and the pointer-compression images 2.47.6-pc, 2.48.3-pc and 3.2.2-pc
- Exploited
- No CVE, so not eligible for CISA KEV; the advisory reports no exploitation
- In scanner databases
- Not in the GitHub global database or OSV at 2026-11-27 14:10 UTC
- Checked
- 2026-11-27 14:10 UTC
- Next review
- 2026-12-04
What happened
n8n runs workflow expressions inside a V8 isolate. A bug in the V8 engine that n8n ships let a crafted expression corrupt memory and leave the isolate. A user who can create and run workflows could then run code in the main n8n process, with the privileges of the n8n service user. In our reading, that includes what the main process can reach, such as the credentials n8n keeps for connected services; the advisory does not say this.
Who is affected
Anyone who lets people they do not fully trust create or edit workflows, on an instance without the patched engine. Our view: on an instance where only you can edit workflows, the person who could use this already controls the instance.
Am I affected?
The engine is the check, not only the n8n version. n8n's fix is a patched build of Node.js in its Docker images: a V8 patch from upstream that Node has not yet applied to its 26.x line, says the patch file in n8n's repository. The image build fails unless the V8 version carries an -n8n.<number> suffix. So run this in the main n8n container and, in queue mode, in every worker and webhook processor, because workers run the executions (n8n's queue-mode docs):
docker exec <container> node -p process.versions.v8
- A version ending in
-n8n.1(or a higher number): the patched engine. We ran this on the default images 2.49.2 and 3.4.0: both print14.6.202.34-node.40-n8n.1. - No
-n8nsuffix: the stock engine, whatever tag the image has. Node adds its own-node.<n>suffix, so a stock engine still ends in something like-node.40. On3.4.0-debianwe got14.6.202.34-node.40, the stock engine.
If you run n8n from npm on your own Node, run node -p process.versions.v8 on that host. You will see Node's own -node.<n> suffix but no -n8n, because the patch is not in Node itself: Node 26.13.1, the latest 26.x release (2026-11-10), lists V8 14.6.202.34, the same as 26.13.0. We checked an npm install of n8n 2.49.2 in a container: the package ships no engine of its own (no node binary or V8 library among its 83 native files), and its n8n command starts with #!/usr/bin/env node, so it runs on the host's Node. On stock Node 26.13.0 the install failed, because a native dependency (@confluentinc/kafka-javascript 1.9.1) has no build for Node 26 and did not compile; on stock Node 24.22.3 it installed and ran on V8 13.6.233.17-node.63. Upgrading the n8n package changes n8n's code, not your Node.
Our weekly page of 2026-11-27 first listed n8n before 2.49.2 as the affected package and checked the image tag only; it was corrected the same day to check the engine.
Also check who can edit workflows. That list decides whether the bug matters to you.
Fix, and what the upgrade does not do
Run the default Docker image 2.49.2 or later on the 2.x line, or 3.4.0 or later, or one of the -pc tags in the facts box (we did not pull those). The record's range includes the 1.x line and names no 1.x fix; we did not pull 1.x images either. The -debian tags (2.49.2-debian, 3.4.0-debian exist on Docker Hub) are built on a stock Node base in n8n's build file at 3.4.0, not on the patched one, and 3.4.0-debian printed the stock engine in our check; the advisory does not mention them. Whatever the tag, the node -p result decides.
What the upgrade does not do:
- It may not fix npm installs on stock Node. We do not know whether Node 24's V8 13.6, which n8n accepts (
engines: node >=24.0.0) and on which the npm install works, has this bug. n8n's build applies the same patch to the Node 24 it compiles for its 1.x image, which shows n8n patches it, not that the bug is there. Until that is known, treat an npm install as unfixed and use the advisory's workarounds. Until Node ships the V8 fix (we have not checked whether a later 26.x release will), those workarounds are what is left there: limit instance access, and remove workflow creation and editing from users who are not fully trusted. The advisory says these do not fully remove the risk. - Scanners may disagree with the advisory. The record's Docker range, "before 3.4.0", makes a scanner flag the fixed 2.49.2 image. Its npm range, "fixed in 2.49.2", makes a scanner pass an npm install that still runs the host's stock engine (checked above).
- It tells you nothing about the past. The advisory gives no signs to look for. If untrusted users had workflow access before the upgrade, deciding whether to rotate the credentials stored in n8n is yours; that is our suggestion, not the advisory's.
Sources
Primary records first. Record identifiers link from the facts box. Opened 2026-11-27 between 13:25 and 13:34 UTC. Our version check of 2026-11-27 (no exploit run) is not published yet. GitHub advisory data: CC BY 4.0.
Records and release notes
- Project advisory GHSA-w6f8-8qh4-h3j4, n8n-io/n8n, accessed 2026-11-27
- Project advisory GHSA-w6f8-8qh4-h3j4, GitHub API, accessed 2026-11-27
- n8n, compare n8n@2.49.1...n8n@2.49.2, accessed 2026-11-27
- n8n commit 733775ae35, "Pin patched Node 26 images", accessed 2026-11-27
- n8n release 2.49.2, accessed 2026-11-27
- n8n release 3.4.0, accessed 2026-11-27
- n8n, docker/docker-bake.hcl at n8n@3.4.0 (targets n8n and n8n-debian), accessed 2026-11-27
- n8n, docker/images/node-pc/Dockerfile, accessed 2026-11-27
- n8n, docker/images/node-pc/check-v8-patches.js, accessed 2026-11-27
- n8n, the V8 patch 0001-v8-normalize-one-byte-ast-strings.patch, accessed 2026-11-27
- Docker Hub API, n8nio/n8n tags, accessed 2026-11-27
- npm registry, n8n, accessed 2026-11-27
- Node.js release index (dist/index.json), accessed 2026-11-27
- GitHub global advisory API, GHSA-w6f8-8qh4-h3j4, 404 for this ID at our check, accessed 2026-11-27
- OSV, npm n8n, accessed 2026-11-27
- CISA Known Exploited Vulnerabilities catalog, JSON feed, catalog 2026.11.25, accessed 2026-11-27
Vendor documentation and statements
- n8n docs, "Enable queue mode", accessed 2026-11-27
Corrections
No corrections.
Report an error to contact@arviser.com.
How this page was made: Claude Opus 5.5, an AI model, wrote this note and ran the lab. A separate AI agent checked it against the sources and the lab record. Vadim Nareyko approved the template and the first three notes on 27 November from a summary in Russian.
Text and data on this page: CC BY 4.0. Quoted third-party material keeps its own terms.