CVE-2025-61917 — Vulnerability in n8n — CVE Details
n8n's Unsafe Buffer Allocation Allows In-Process Memory Disclosure in Task Runner
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.50%). Schedule for your next planned update.
Does your project use an affected n8n version?
Paste your package-lock.json to check it for CVE-2025-61917 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
The use of Buffer.allocUnsafe() and Buffer.allocUnsafeSlow() in the task runner allowed untrusted code to allocate uninitialized memory. Such uninitialized buffers could contain residual data from within the same Node.js process (for example, data from prior requests, tasks, secrets, or tokens), resulting in potential information disclosure.
Only authenticated users are able to execute code through Task Runners.
This issue affected any deployment in which both of the following conditions were met:
- Task Runners were enabled using
N8N_RUNNERS_ENABLED=true(default: false) - Code Node was enabled (default: true)
Patches
Access to unsafe Buffer functions has been removed from the task runner sandbox. All buffer allocations are now zero-filled by default.
- Fixed in: 1.114.3 & 1.115.0
- Action: It is strongly recommended to upgrade to version ≥ 1.114.3 as soon as possible.
Changes introduced in this patch include:
- Routing all buffer allocations through
Buffer.alloc(which zero-fills) operations where applicable - Adding regression tests to ensure continued enforcement of safe allocation practices
Workarounds
If an immediate upgrade cannot be applied, the following hardening steps are recommended:
- Disable the Code Node by adding
n8n-nodes-base.codeto theNODES_EXCLUDEenvironment variable - Prefer external mode for isolation: run Task Runners in external mode so that untrusted task code executes in a separate sidecar container rather than within the main n8n process. This configuration significantly reduces the risk of in-process memory disclosure caused by unsafe buffer allocations.
In external mode, a launcher manages Task Runner processes in a dedicated sidecar environment, separate from the primary n8n instance.
See the n8n documentation for configuration details and required environment variables.
Resources
- Node.js documentation:
Buffer.alloc()vsBuffer.allocUnsafe()— background on zero-filled vs uninitialized allocations - n8n Documentation — Task Runners — external mode, setup guide, and environment configuration details
- n8n Documentation — Blocking nodes — how to globally disable specific nodes
Advisory Timeline
- First published February 4, 2026 (295 days ago).
- Last revised February 4, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install n8n@1.114.3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| n8n npm · Affected: All versions | 1.114.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
- CWE-668
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
References
Frequently Asked Questions
- What is CVE-2025-61917?
- n8n's Unsafe Buffer Allocation Allows In-Process Memory Disclosure in Task Runner. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.7/10).
- How do I check if my project is affected by CVE-2025-61917?
- CVE-2025-61917 affects n8n. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-61917 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 35.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-25053CRITICAL
n8n has OS Command Injection in Git Node
- CVE-2026-42232CRITICAL
n8n has XML Node Prototype Pollution that to RCE
- CVE-2026-42234HIGH
n8n has a Python Task Runner Sandbox Escape Vulnerability
- CVE-2026-42236HIGH
n8n Vulnerable to Unauthenticated Denial of Service via MCP Client Registration
- CVE-2026-59209HIGH
n8n: Shared Credential Header Leak via HTTP Request Pagination Expression
- CVE-2025-62726HIGH
n8n Vulnerable to Remote Code Execution via Git Node Pre-Commit Hook
- CVE-2026-72764MEDIUM
n8n: Cross-Tenant Module-Cache Poisoning in the JS Task Runner
- CVE-2025-49595MEDIUM
n8n Vulnerable to Denial of Service via Malformed Binary Data Requests