CVE-2026-86076
HIGH 8.7CVSS 4.0n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the expression compiler sanitizer resolved through dynamically scoped this and did not reject reserved class member names. A class field named __sanitize could rebind the sanitizer and reach the Function constructor, enabling backend code execution and editor-preview JavaScript execution. The affected AST hook is PrototypeSanitizer in packages/workflow/src/expression-sandboxing.ts. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.
- Published
- 8 Sep 2026
- Last modified
- 11 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-hw8v-xxg5-vvvx
- Sources
- NVDJSONOSV GHSA-hw8v-xxg5-vvvxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* |
< 1.123.76 | 1.123.76 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.37.7 | 2.37.7 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* |
>= 2.38.0, < 2.38.2 | 2.38.2 |
| OSV | npm | n8n | < 1.123.76 | 1.123.76 |
| OSV | npm | n8n | >= 2.38.0, < 2.38.2 | 2.38.2 |
| OSV | npm | n8n | >= 2.0.0, < 2.37.7 | 2.37.7 |
References
- https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.76 · Release Notes, WEB
- https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7 · Release Notes, WEB
- https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2 · Release Notes, WEB
- https://github.com/n8n-io/n8n/security/advisories/GHSA-hw8v-xxg5-vvvx · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-86076 · ADVISORY
- https://github.com/n8n-io/n8n · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 8 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Sep 2026)