VULNERABILITIES Critical N8n Sandbox Escape Could Lead to Server Compromise The vulnerability could allow attackers to execute arbitrary commands and steal credentials and other secrets. By Ionut Arghire | February 5, 2026 (6:23 AM ET) Flipboard Reddit Whatsapp Email A critical sandbox escape vulnerability in the n8n AI workflow automation platform could allow attackers to execute arbitrary commands on the server, Pillar Security reports. Tracked as CVE-2026-25049 (CVSS score of 9.4), the issue impacts the manner in which the n8n sandbox’s sanitization routine evaluates JavaScript expressions. Pillar discovered that the sandbox’s sanitizer could be bypassed via JavaScript expressions that contained properties with a template literal, and via arrow functions and specific stack frame objects that would return real global objects. These weaknesses in implementation allowed the security firm to escape the n8n sandbox and achieve command execution on the server. The attack, Pillar says, led to full server compromise, allowing access to all environment variables, stored credentials, API and cloud keys, OAuth tokens, and configuration files. Armed with the compromised secrets, an attacker could access connected cloud accounts, hijack AI pipelines and redirect traffic, and access internal services on n8n cloud instances. ADVERTISEMENT. SCROLL TO CONTINUE READING. According to Pillar, a successful attack could be mounted by creating or modifying a workflow with parameters containing crafted expressions. “The entire attack fits inside what looks like a data transformation. No special permissions required. No admin access – just a user who can edit workflows,” Pillar notes. The company reported the bug to n8n on December 21 and a fix was rolled out two days later, blocking template literals. The next day, Pillar discovered that the patch could be bypassed using function arguments, which are not sanitized. “The root cause in both cases: incomplete AST analysis. The sanitizer made assumptions about how JavaScript code would be written, and we found ways to express the same operations differently,” Pillar notes. Both the initial vulnerability and its bypass were properly addressed in n8n version 2.4.0, Pillar says. Users are advised to update their instances as soon as possible. Related: N8n Vulnerabilities Could Lead to Remote Code Execution Related: Cisco, F5 Patch High-Severity Vulnerabilities Related: Chrome 144, Firefox 147 Patch High-Severity Vulnerabilities Related: Critical Vulnerability Patched in jsPDF WRITTEN BY Ionut Arghire Ionut Arghire is an international correspondent for SecurityWeek. More from Ionut Arghire VS Code Configs Expose GitHub Codespaces to Attacks SystemBC Infects 10,000 Devices After Defying Law Enforcement Takedown Cisco, F5 Patch High-Severity Vulnerabilities Orion Raises $32 Million for Data Security DockerDash Flaw in Docker AI Assistant Leads to RCE, Data Theft Cryptominers, Reverse Shells Dropped in Recent React2Shell Attacks Fresh SolarWinds Vulnerability Exploited in Attacks RADICL Raises $31 Million for vSOC Latest News Organizations Urged to Replace Discontinued Edge Devices Flickr Security Incident Tied to Third-Party Email System In Other News: Record DDoS, Epstein’s Hacker, ESET Product Vulnerabilities Living off the AI: The Next Evolution of Attacker Tradecraft Airrived Emerges From Stealth With $6.1 Million in Funding ‘DKnife’ Implant Used by Chinese Threat Actor for Adversary-in-the-Middle Attacks 5 Bills to Boost Energy Sector Cyber Defenses Clear House Panel Critical SmarterMail Vulnerability Exploited in Ransomware Attacks TRENDING Daily Briefing Newsletter Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts. Webinar: Identity Under Attack: Why Every Business Must Respond Now February 11, 2026 Attendees will walk away with guidance for how to build robust identity defenses, unify them under a consistent security model, and ensure business operations move quickly without compromise. Register Virtual Event: Ransomware Resilience & Recovery 2026 Summit February 25, 2026 SecurityWeek’s 2026 Ransomware Summit will discuss a roadmap for defending the enterprise, from mitigating root causes to mastering recovery, giving security teams the critical insights needed to navigate and neutralize today’s ransomware extortion threats. Submit PEOPLE ON THE MOVE Pennsylvania has named Andy Ritter as CISO and Jim Sipe as executive deputy CIO. Hayete Gallot has rejoined Microsoft as Executive Vice President, Security. Torq has appointed industry veteran John White as Field CISO. More People On The Move EXPERT INSIGHTS Living off the AI: The Next Evolution of Attacker Tradecraft Living off the AI isn’t a hypothetical but a natural continuation of the tradecraft we’ve all been defending against, now mapped onto assistants, agents, and MCP. (Etay Maor) Why We Can’t Let AI Take the Wheel of Cyber Defense The fastest way to squander the promise of AI is to mistake automation for assurance, and novelty for resilience. (Steve Durbin) The Upside Down is Real: What Stranger Things Teaches Us About Modern Cybersecurity To all those who are fighting the good fight in the world of cyber, keep collaborating to ensure our world never succumbs to the chaos of the Upside Down. (Nadir Izrael) Why Identity Security Must Move Beyond MFA By integrating identity threat detection with MFA, organizations can protect sensitive data, maintain operational continuity, and reduce risk exposure. (Torsten George) Forget Predictions: True 2026 Cybersecurity Priorities From Leaders Security leaders chart course beyond predictions with focus on supply chain, governance, and team efficiency. (Jennifer Leggio) Flipboard Reddit Whatsapp Email
A critical sandbox escape vulnerability (CVE-2026-25049, CVSS score of 9.4) in the n8n AI workflow automation platform allows attackers to execute arbitrary commands on the server. The vulnerability stems from the insufficient sanitization of JavaScript expressions within the n8n sandbox. Details regarding affected and fixed versions are not provided in this article.