Ptechhub
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs
No Result
View All Result
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs
No Result
View All Result
PtechHub
No Result
View All Result

n8n Sandbox Escape Lets Workflow Editors Run OS Commands as the n8n Process

The Hacker News by The Hacker News
July 27, 2026
Home Cybersecurity
Share on FacebookShare on Twitter


Swati KhandelwalJul 27, 2026Vulnerability / Enterprise Security

n8n has patched a high-severity expression-sandbox escape that could let an authenticated workflow editor execute operating-system commands on the server running the automation platform. Security Joes found the flaw while probing n8n’s February fix for CVE-2026-27577 for another bypass.

The affected ranges are <2.31.5 and >=2.32.0,<2.32.1. n8n fixed the flaw in versions 2.31.5 and 2.32.1. It tracks the issue as GHSA-gv7g-jm28-cr3m, rates it High with a CVSS 4.0 score of 8.7, and no CVE had been assigned as of July 27, 2026.

Administrators should update rather than rely on n8n’s interim guidance to restrict instance access and workflow editing to fully trusted users. The advisory describes those controls as incomplete, short-term mitigations. It lists no patched 1.x release and does not say whether n8n Cloud was affected.

Exploitation requires a valid account with permission to create or modify workflows. It does not require action from another user. A successful exploit executes commands with the privileges of the n8n process.

Security Joes, in a report shared with The Hacker News, said that access could expose N8N_ENCRYPTION_KEY and allow decryption of credentials stored in n8n. It could also open paths to connected databases, internal services, and cloud endpoints. The firm had not observed exploitation in the wild when its report was prepared. The public advisory does not say whether the flaw was exploited before the fix.

n8n workflow builders use expressions such as ={{ $json.email }}. An abstract syntax tree rewriter redirects free JavaScript identifiers in those expressions to n8n’s controlled data context rather than the Node.js runtime. In version 2.31.4, VariablePolyfill.ts placed ArrowFunctionExpression in an explicit no-op branch. A concise arrow body such as () => process could therefore resolve process to the real Node.js global instead of the sandboxed value.

The second blind spot, Security Joes said, was in n8n’s property checks, which inspect static property names in member expressions. Reflect.get() receives the requested property as a function argument. The researchers used that distinction to recover process.getBuiltinModule, load child_process, and run a command on the host.

They tested the proof-of-concept against n8n 2.30.4 through both the released workflow package and a local n8n instance.

A comparison of the public 2.31.4 and 2.31.5 source files confirms the arrow-function gap. It does not independently confirm the complete Reflect.get() exploit chain described in Security Joes’ report. The fixed rewriter adds a dedicated ArrowFunctionExpression handler that routes a bare identifier in a concise arrow body through the data context.

“Neither alone is sufficient. Neither was covered by tests,” Security Joes’ research team said of the two conditions its exploit relied on. Security Joes initially estimated the flaw would land near the 9.4 Critical rating of CVE-2026-27577; the vendor’s published 8.7 is the current score.

Researchers identified the residual escape on July 14 and reported it through n8n’s vulnerability disclosure program on July 15. n8n published the fixed releases on July 22. Defenders should review recently created or modified workflows for unexpected arrow functions or obfuscated JavaScript. They should also hunt for shells, PowerShell, curl, or wget spawned as children of the n8n or Node.js process. Credentials should be rotated where suspicious workflow execution or host command activity is found.

The finding extends a series of expression-sandbox escapes n8n has patched since 2025. It follows CVE-2026-27577, a 9.4-rated escape fixed in February after researchers found the process object slipped through the same identifier-rewriting layer untransformed.

In affected deployments where n8n stores broadly privileged credentials or can reach sensitive internal systems, an attacker who compromises a workflow-edit account can use the flaw to execute commands as the n8n process and reach services accessible from the n8n host.



Source link

The Hacker News

The Hacker News

Next Post
Unanimous AI Wins Air Force Contract to bring Hyper-Communication Technology to Real-time Command and Control

Unanimous AI Wins Air Force Contract to bring Hyper-Communication Technology to Real-time Command and Control

Recommended.

Stocks making the biggest moves midday: Biogen, Rivian, Bank of America, Airbnb & more

Stocks making the biggest moves midday: Biogen, Rivian, Bank of America, Airbnb & more

January 14, 2026
Critical Unpatched SharePoint Zero-Day Actively Exploited, Breaches 75+ Global Organizations

Critical Unpatched SharePoint Zero-Day Actively Exploited, Breaches 75+ Global Organizations

July 20, 2025

Trending.

Cloud Market Share Q1 2026: AWS, Microsoft, Google Battling In AI Era

Cloud Market Share Q1 2026: AWS, Microsoft, Google Battling In AI Era

May 4, 2026
AWS Vs. Google Cloud Vs. Microsoft Azure Q1 Earnings Face-Off

AWS Vs. Google Cloud Vs. Microsoft Azure Q1 Earnings Face-Off

May 1, 2026
30 Notable IT Executive Moves: April 2026

30 Notable IT Executive Moves: April 2026

May 11, 2026
Anaconda Extends AI-Native Application Development With Acquisition

Anaconda Extends AI-Native Application Development With Acquisition

May 1, 2026
Cloud revenues up 35% YoY in a hot market that’s accelerating | Computer Weekly

Cloud revenues up 35% YoY in a hot market that’s accelerating | Computer Weekly

April 30, 2026

PTechHub

A tech news platform delivering fresh perspectives, critical insights, and in-depth reporting — beyond the buzz. We cover innovation, policy, and digital culture with clarity, independence, and a sharp editorial edge.

Follow Us

Industries

  • AI & ML
  • Cybersecurity
  • Enterprise IT
  • Finance
  • Telco

Navigation

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Subscribe to Our Newsletter

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Copyright © 2025 | Powered By Porpholio

No Result
View All Result
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs

Copyright © 2025 | Powered By Porpholio