
n8n RCE (CVE-2025-68613)
This repository contains an educational security research project focused on
CVE-2025-68613, a vulnerability affecting specific versions of n8n related to
unsafe workflow expression evaluation.
The project was tested only in a controlled local lab environment.
CVE-2025-68613 is an authenticated Remote Code Execution (RCE) vulnerability caused by unsafe evaluation of workflow expressions in affected n8n versions.
Under certain conditions, authenticated users can abuse the workflow expression evaluation system to execute arbitrary code.
1.120.41.121.11.122.0.
├── scanner.py # Safe version-based vulnerability checker
├── exploit.py # Exploit of the workflow expression evaluation system
scanner.py
Performs non-intrusive version checking only (safe for audits and inventories).
exploit.py
Demonstrates how the workflow expression evaluation system can be abused
in vulnerable versions.
⚠️ This file is an exploit, not just a PoC, and is intended only for local labs.
The vulnerable environment was created using the official n8n Docker image.
docker run -it --rm \
--name n8n-vulnerable \
-p 5678:5678 \
n8nio/n8n:1.121.0
1.121.0 is intentionally vulnerable for testing purposes.The image below shows a Set node evaluating a workflow expression and returning
command output inside the workflow execution result.
This behavior occurs due to unsafe expression evaluation in vulnerable versions.

python scanner.py http://localhost:5678
n8n Version Info: 1.121.0
The target n8n instance is VULNERABLE to CVE-2025-68613.
The exploit script:
⚠️ This script must only be used on systems you own or have explicit permission to test. Example:
python exploit.py -u http://localhost:5678 -e <youremail> -p <yourpassword>
---
## Disclaimer
This repository is provided **strictly for educational, research, and defensive
security purposes**.
All testing was performed in a **local Docker-based lab environment**.
Unauthorized use of this code against systems without permission is illegal and may
violate applicable laws.
The author assumes **no responsibility** for misuse, damage, or legal consequences
resulting from the use of this code.
## Author
Security research conducted as part of a personal learning and portfolio project.