Skip to content
HighVulnerability

GHSA-49mx-fj45-q3p6: n8n's Unsafe Buffer Allocation Allows In-Process Memory Disclosure in Task Runner

Published
Record updated
View JSON
Affected
  • n8n >= 1.65.0, < 1.114.3
Fixed in
1.114.3
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

n8n's task runner allowed untrusted code to call Buffer.allocUnsafe() and Buffer.allocUnsafeSlow(), returning uninitialized memory that could hold residual data from the same Node.js process, such as prior requests, tasks, secrets or tokens. Only authenticated users can execute code through Task Runners, and the issue affected deployments with N8N_RUNNERS_ENABLED=true and the Code Node enabled.

Mitigation

Fixed in 1.114.3 & 1.115.0. Upgrading to version ≥ 1.114.3 is strongly recommended. If an immediate upgrade is not possible, disable the Code Node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable, or run Task Runners in external mode so untrusted task code runs in a separate sidecar container.