Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Ashwesker-CVE-2026-21858 — Exploit for CVE-2026-21858, a critical unauthenticated content-type parsing flaw in n8n allowing arbitrary file read, credential theft, and remote code execution. | Kitploit
Tools/GitHubGitHub/bgarz929/ashwesker-cve-2026-21858
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRed Teaming
GitHubbgarz929/ashwesker-cve-2026-21858

Ashwesker-CVE-2026-21858

Exploit for CVE-2026-21858, a critical unauthenticated content-type parsing flaw in n8n allowing arbitrary file read, credential theft, and remote code execution.

View Repository
28 months 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

🚨 CVE-2026-21858 — “Ni8mare”

G-ELe0qa4AA62WN

A critical, unauthenticated vulnerability allowing full compromise of n8n servers


🆔 Overview

FieldDetails
CVE IDCVE-2026-21858
CodenameNi8mare
Severity🔴 Critical
CVSS Score10.0 (Maximum)
Attack Vector🌐 Network
Authentication Required❌ None
User Interaction❌ None
Disclosure DateJanuary 7, 2026

🧩 Affected Software

695d3838bfa165b220846758_n8n-website-image
  • Product: n8n (workflow automation platform)
  • Vulnerable Versions: ⚠️ ≤ 1.65.0
  • Patched Versions: ✅ 1.121.0 and later

⚠️ Public-facing n8n instances are especially at risk.


🧠 Technical Summary

CVE-2026-21858 is caused by a content-type parsing flaw in n8n’s handling of incoming HTTP requests—particularly those involving webhooks and form submissions.

Root Cause

  • Improper validation of the HTTP Content-Type header

  • Incorrect distinction between:

    • multipart/form-data
    • Other content types
flaw-1

Result

Attackers can manipulate internal request variables (e.g. req.body.files) and bypass security controls.


💥 What Attackers Can Do

Without authentication, attackers can:

✅ Read arbitrary files from the server ✅ Extract credentials, secrets, tokens, and configs ✅ Access database files ✅ Forge admin sessions ✅ Escalate to Remote Code Execution (RCE) ✅ Achieve full system takeover

🧨 A single crafted HTTP request can be enough.


🛠 Exploitation Flow (Simplified)

root@kitploit:~
Crafted HTTP Request
        ↓
Content-Type Manipulation
        ↓
File Handling Bypass
        ↓
Arbitrary File Read
        ↓
Credential / Secret Extraction
        ↓
Privilege Escalation
        ↓
Remote Code Execution
cve-2026-21858

📉 Impact Assessment

Security PropertyImpact
Confidentiality🔥 Complete compromise
Integrity🔥 Full manipulation possible
Availability🔥 Potential total disruption
Exploit Complexity⚡ Low
Exposure🌍 Internet-facing

📊 Hundreds of thousands of n8n instances may be exposed worldwide.


🛡 Mitigation & Remediation

✅ Immediate Actions (Strongly Recommended)

  1. Upgrade n8n

    • ⬆️ Update to v1.121.0 or newer
  2. Restrict Access

    • 🔐 Firewall rules
    • 🔐 VPN or IP allow-listing
  3. Audit Webhooks

    • 🔍 Review workflows accepting external input
  4. Monitor Logs

    • 🚨 Watch for unexpected workflow executions
    • 🚨 Look for suspicious file access

❌ No safe workaround exists — patching is mandatory.


🧪 Detection Tips

Look for:

  • Unknown or unexpected workflows
  • Unusual webhook requests
  • Unexpected access to config, DB, or credential files
  • New admin sessions or tokens without explanation

Download Tool