Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-21858 — Docker-based PoC environment and exploit script for CVE-2026-21858, an n8n 1.120.4 arbitrary file read and RCE flaw, providing secret extraction and an interactive shell. | Kitploit
Tools/GitHubGitHub/yym8538/cve-2026-21858
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationSecurity VirtualizationPenetration TestingRed TeamingRemote Access Tool
GitHubyym8538/cve-2026-21858

CVE-2026-21858

Docker-based PoC environment and exploit script for CVE-2026-21858, an n8n 1.120.4 arbitrary file read and RCE flaw, providing secret extraction and an interactive shell.

141 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository

CVE-2026-21858 RCE

PoC environment for n8n 1.120.4 with a Form Trigger workflow and an exploit script.

Requirements

  • Docker (Docker Desktop on Windows)
  • Python 3.x (attack side)

Files

  • Dockerfile — build the n8n vulnerable environment
  • run.bat — run the container (Windows)
  • workflow.txt — n8n workflow (includes Form Trigger)
  • poc.py — PoC script
  • requirements.txt — PoC dependencies

Environment Setup

  1. Build Docker image
docker build -t n8n-vuln:1.120.4 .
  1. Run environment (Windows)
run.bat
  1. n8n Configuration
  1. Open n8n in the browser
  2. Login as admin
  3. Create a new workflow
  4. paste workflow.txt
  5. Activate the workflow
  6. Copy the Form Trigger URL

Proof of Concept (PoC)

  1. Install dependencies (attack side)
pip3 install -r requirements.txt
  1. Run exploit
python3 poc.py
  • Paste the Form Trigger URL when prompted.

Expected Result

  • PoC extracts sensitive n8n assets (e.g., FINAL_SECRET_KEY, admin identifiers) from the target.
  • An interactive shell prompt (n8n-shell>) is provided.
  • Running a command (e.g., id) returns output from the target environment (RCE).

Sample Output

[+] Success: SECRET_KEY = "..."
[+] Success: admin_id = "..."
[+] Success: admin_hash = "..."

=== n8n Shell Ready ===
n8n-shell> id

[!] 'id' Result:
------------------------------
uid=1000(n8n) gid=1000(n8n) groups=1000(n8n)
------------------------------

EQST Insight

We publish CVE and malware analysis once a month. If you're interested, please follow the links below to check out our publications.

  • KR : https://www.skshieldus.com/security-insights/reports/n8n_arbitrary_file_read_vulnerability_cve_2026_21858
  • EN : https://www.skshieldus.com/en/report?tab=eqst
Download Tool