CVE-2025-61917: n8n Buffer Allocation Flaw Leads to Memory Disclosure

n8n Updated 04 Feb 2026

Summary

04/02/2026
Yes i
High
7.7

CVE-2025-61917: n8n's Unsafe Buffer Allocation Allows In-Process Memory Disclosure in Task Runner. Affects n8n versions >= 1.65.0, < 1.114.3. Fixed in 1.114.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

n8n is an open-source workflow automation tool that allows users to connect various applications and services through customizable workflows. It supports a wide range of integrations and enables users to automate repetitive tasks without extensive coding knowledge. However, the use of unsafe buffer allocation methods in its task runner poses a significant security risk, potentially exposing sensitive data.

Vulnerability Detail

The vulnerability arises from the use of Buffer.allocUnsafe() and Buffer.allocUnsafeSlow() in n8n's task runner, which allows untrusted code to allocate uninitialized memory. This uninitialized memory can contain residual data from previous operations within the same Node.js process, leading to potential information disclosure of sensitive data such as secrets, tokens, or user data. Only authenticated users can execute code through Task Runners, but the risk remains significant if the conditions for exploitation are met.

How To Fix

Latest published version: 2.44.6 as of 22 Oct 2026

npm install n8n@2.44.6

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.114.3

This is the first release that contains the fix.

npm install n8n@1.114.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If an immediate upgrade is not feasible, consider the following workarounds: 1. Disable the Code Node by adding 'n8n-nodes-base.code' to the 'NODES_EXCLUDE' environment variable. 2. Run Task Runners in external mode to isolate untrusted task code in a separate sidecar container, significantly reducing the risk of memory disclosure. Refer to the n8n documentation for configuration details.

Conclusion

The CVE-2025-61917 vulnerability in n8n highlights the importance of safe memory allocation practices in software development. By upgrading to the patched version and implementing recommended workarounds, users can significantly reduce the risk of sensitive data exposure.

See every vulnerability recorded for n8n →

Share this vulnerability

FAQ

CVE-2025-61917 is a vulnerability in n8n that allows untrusted code to allocate uninitialized memory, potentially leading to information disclosure.

Authenticated users can execute code that may inadvertently expose sensitive data from uninitialized buffers, posing a security risk.

Versions of n8n from 1.65.0 up to but not including 1.114.3 are affected by this vulnerability.

You can disable the Code Node or run Task Runners in external mode as temporary workarounds to mitigate the risk.

You can refer to the n8n documentation and the Node.js documentation for more details on buffer allocation practices.

Related vulnerabilities

Recent vulnerabilities recorded for n8n.

How To Fix

Latest published version: 2.44.6 as of 22 Oct 2026

npm install n8n@2.44.6

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.114.3

This is the first release that contains the fix.

npm install n8n@1.114.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback