GHSA-vmf9-xx9w-86wx: PraisonAI: DNS rebinding exposes MCP agent tools

GHSA-vmf9-xx9w-86wx HIGH
Published June 18, 2026
CISO Take

PraisonAI's legacy SSE MCP transport (praisonaiagents ≤1.6.58, praisonai ≤4.6.58) accepts any Origin and Host header without validation, allowing a malicious website to invoke locally-running AI agent tools via DNS rebinding — no credentials required from the attacker. The blast radius depends entirely on what tools are registered: common PraisonAI deployments expose file system access, cloud API integrations, code repositories, and internal service automation, making this an unauthenticated remote-action primitive for anyone who can lure a local user to an attacker-controlled page. No public exploit is published and the CVE is absent from CISA KEV, but the technique is well-documented in public toolkits and the same codebase already ships a working Origin guard in its Streamable HTTP transport — the protection was simply never ported to the SSE sibling path. Upgrade immediately to praisonaiagents 1.6.59 / praisonai 4.6.59; if patching is not immediately possible, switch to Streamable HTTP transport (`--transport http`), which correctly enforces Origin validation.

Sources: GitHub Advisory ATLAS

What is the risk?

High severity (CVSS 8.3, AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H). Attack complexity is rated High because DNS rebinding requires attacker-controlled DNS infrastructure and a browser visit, but the technique is fully automated in widely available toolkits. The transport has zero authentication — no API key, no token, no session — and binds to 127.0.0.1 by default, which browsers treat as a trusted origin boundary. The scope change (S:C) reflects that registered tools operate on resources well beyond the HTTP transport itself. Organizations running PraisonAI agents with SSE transport on developer laptops or internal servers are at elevated risk, particularly in environments where AI agents are connected to production cloud APIs, internal services, or sensitive file systems.

How does the attack unfold?

Initial Access
Victim visits an attacker-controlled website that initiates DNS rebinding, causing the browser to associate the attacker's origin with 127.0.0.1 after the short TTL expires.
AML.T0078
Tool Discovery
Attacker's JavaScript connects to the local PraisonAI /sse endpoint using the rebound origin, successfully receiving the MCP event stream and enumerating all registered tool names and input schemas.
AML.T0084.001
Tool Invocation
Attacker selects high-value tools (file access, cloud API, repository integrations) and issues POST requests to /messages/ to invoke them with attacker-controlled parameters, bypassing all authentication.
AML.T0053
Impact
Depending on registered tools, attacker reads sensitive files, exfiltrates credentials or secrets, modifies infrastructure state, or triggers automation — all executing within the local user's permission context.
AML.T0086

What systems are affected?

Package Ecosystem Vulnerable Range Patched
PraisonAI pip >= 3.10.0, <= 4.6.58 4.6.59
1 dependents 68% patched ~14d to patch Full package profile →
PraisonAI Agents pip >= 0.6.0, <= 1.6.58 1.6.59
20 dependents 65% patched ~6d to patch Full package profile →

How severe is it?

CVSS 3.1
8.3 / 10
EPSS
N/A
Exploitation Status
No known exploitation
Sophistication
Moderate

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC High
PR None
UI Required
S Changed
C High
I High
A High

What should I do?

6 steps
  1. Patch immediately: upgrade praisonaiagents to 1.6.59+ and praisonai to 4.6.59+.

  2. If patching is blocked, switch to Streamable HTTP transport (--transport http), which already enforces Origin validation and rejects attacker origins with HTTP 403.

  3. For runtime detection, monitor for unexpected HTTP connections to local ports in the 8000-9000 range carrying external-domain Origin headers — a strong indicator of DNS rebinding attempts against local MCP servers.

  4. Apply network-layer controls: firewall or resolver rules blocking resolution of 127.0.0.1 / RFC1918 addresses from external DNS entries disrupt the rebinding vector.

  5. Require --api-key on all non-stdio MCP HTTP transport deployments as a defense-in-depth measure even after patching.

  6. Audit which tools are registered on exposed MCP servers — tools with write access to external systems or credentials in scope are highest priority.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15 - Accuracy, robustness and cybersecurity
ISO 42001
A.9.3 - Information security for AI systems
NIST AI RMF
GOVERN 1.7 - Processes for AI risk identification and management
OWASP LLM Top 10
LLM06:2025 - Excessive Agency

Frequently Asked Questions

What is GHSA-vmf9-xx9w-86wx?

PraisonAI's legacy SSE MCP transport (praisonaiagents ≤1.6.58, praisonai ≤4.6.58) accepts any Origin and Host header without validation, allowing a malicious website to invoke locally-running AI agent tools via DNS rebinding — no credentials required from the attacker. The blast radius depends entirely on what tools are registered: common PraisonAI deployments expose file system access, cloud API integrations, code repositories, and internal service automation, making this an unauthenticated remote-action primitive for anyone who can lure a local user to an attacker-controlled page. No public exploit is published and the CVE is absent from CISA KEV, but the technique is well-documented in public toolkits and the same codebase already ships a working Origin guard in its Streamable HTTP transport — the protection was simply never ported to the SSE sibling path. Upgrade immediately to praisonaiagents 1.6.59 / praisonai 4.6.59; if patching is not immediately possible, switch to Streamable HTTP transport (`--transport http`), which correctly enforces Origin validation.

Is GHSA-vmf9-xx9w-86wx actively exploited?

No confirmed active exploitation of GHSA-vmf9-xx9w-86wx has been reported, but organizations should still patch proactively.

How to fix GHSA-vmf9-xx9w-86wx?

1. Patch immediately: upgrade praisonaiagents to 1.6.59+ and praisonai to 4.6.59+. 2. If patching is blocked, switch to Streamable HTTP transport (`--transport http`), which already enforces Origin validation and rejects attacker origins with HTTP 403. 3. For runtime detection, monitor for unexpected HTTP connections to local ports in the 8000-9000 range carrying external-domain Origin headers — a strong indicator of DNS rebinding attempts against local MCP servers. 4. Apply network-layer controls: firewall or resolver rules blocking resolution of 127.0.0.1 / RFC1918 addresses from external DNS entries disrupt the rebinding vector. 5. Require `--api-key` on all non-stdio MCP HTTP transport deployments as a defense-in-depth measure even after patching. 6. Audit which tools are registered on exposed MCP servers — tools with write access to external systems or credentials in scope are highest priority.

What systems are affected by GHSA-vmf9-xx9w-86wx?

This vulnerability affects the following AI/ML architecture patterns: AI agent frameworks, Local MCP servers, Developer workstations running agentic tools, Internal agentic automation pipelines.

What is the CVSS score for GHSA-vmf9-xx9w-86wx?

GHSA-vmf9-xx9w-86wx has a CVSS v3.1 base score of 8.3 (HIGH).

What is the AI security impact?

Affected AI Architectures

AI agent frameworksLocal MCP serversDeveloper workstations running agentic toolsInternal agentic automation pipelines

MITRE ATLAS Techniques

AML.T0053 AI Agent Tool Invocation
AML.T0078 Drive-by Compromise
AML.T0084.001 Tool Definitions
AML.T0086 Exfiltration via AI Agent Tool Invocation

Compliance Controls Affected

EU AI Act: Article 15
ISO 42001: A.9.3
NIST AI RMF: GOVERN 1.7
OWASP LLM Top 10: LLM06:2025

What are the technical details?

Original Advisory

# PraisonAI ToolsMCPServer legacy SSE transport accepts attacker Host/Origin and exposes registered tools ## Summary `praisonaiagents.mcp.ToolsMCPServer.run_sse()` builds a Starlette MCP HTTP+SSE server around `mcp.server.sse.SseServerTransport`. The server exposes `/sse` and `/messages/`, but it does not validate `Origin`, does not validate `Host`, and does not require any authentication. This is reachable through supported PraisonAI code paths that wrap configured MCP server tools and re-expose them over legacy SSE: - `praisonai mcp run <name> --transport sse` - `praisonai serve mcp --name <name> --transport sse` - direct use of `ToolsMCPServer(...).run_sse(...)` or `launch_tools_mcp_server(..., transport="sse")` A malicious website can use DNS rebinding against a local or internal PraisonAI SSE MCP server and send requests with attacker-controlled `Host` and `Origin` headers. The local PoV binds only to `127.0.0.1`, sends an attacker `Host` and `Origin`, lists the registered tool, and invokes it successfully. The same attacker `Origin` is rejected by PraisonAI's current Streamable HTTP transport with HTTP 403. The vulnerability is therefore a sibling transport guard gap in the legacy SSE wrapper, not intended behavior. ## Affected product - Repository: `MervinPraison/PraisonAI` - Packages: - `praisonaiagents` - `praisonai` - Primary component: `src/praisonai-agents/praisonaiagents/mcp/mcp_server.py` - CLI wrappers: - `src/praisonai/praisonai/cli/commands/mcp.py` - `src/praisonai/praisonai/cli/commands/serve.py` - Latest verified release/current head: - `praisonaiagents 1.6.58` - `PraisonAI 4.6.58` - repo head `1ad58ca02975ff1398efeda694ea2ab78f20cf3e` Suggested affected ranges: - `praisonaiagents >= 0.6.0, <= 1.6.58` - `praisonai >= 3.10.0, <= 4.6.58` No fixed version is known at submission time. Confirmed source sweep: ```text v3.0.0 ToolsMCPServer.run_sse helper present, no Origin/Host/auth checks v3.10.0 praisonai mcp run --transport sse wraps configured tools into helper v3.12.3 praisonai serve mcp --name --transport sse wraps configured tools v4.0.0 same vulnerable helper and CLI wrapping paths v4.4.12 same vulnerable helper and CLI wrapping paths v4.5.0 same vulnerable helper and CLI wrapping paths v4.5.56 same vulnerable helper and CLI wrapping paths v4.5.139 same vulnerable helper and CLI wrapping paths v4.6.57 same vulnerable helper and CLI wrapping paths v4.6.58 same vulnerable helper and dynamic PoV succeeds ``` ## Impact If a PraisonAI user starts a local or internal legacy SSE MCP server with registered tools, an attacker who gets that user to visit a malicious website can use DNS rebinding to interact with the SSE server through the browser. The attacker can discover exposed tools and invoke them as the local user. Impact depends on the configured tools. In realistic PraisonAI MCP deployments, registered tools may access local files, repositories, issue trackers, cloud APIs, internal services, or other automation targets. This can lead to confidentiality, integrity, and availability impact for the resources reachable by the exposed tools. The PoV is local-only and harmless. It exposes one marker tool that writes a canary string to a temporary directory. ## Root cause Current `ToolsMCPServer.run_sse()` constructs a Starlette app directly: ```python sse_path = "/sse" messages_path = "/messages/" sse_transport = SseServerTransport(messages_path) async def handle_sse(request: Request): async with sse_transport.connect_sse( request.scope, request.receive, request._send ) as (read_stream, write_stream): await mcp._mcp_server.run( read_stream, write_stream, mcp._mcp_server.create_initialization_options() ) app = Starlette( debug=self._debug, routes=[ Route(sse_path, endpoint=handle_sse), Mount(messages_path, app=sse_transport.handle_post_message), ] ) uvicorn.run(app, host=host, port=port) ``` There is no middleware or route-level check for: - `Origin` - `Host` - `Authorization` - API key - allowed origins / allowed hosts The configured CLI wrapper exposes this path: ```python from praisonaiagents.mcp import MCP, ToolsMCPServer cmd_string = " ".join(cmd) mcp = MCP(cmd_string, timeout=60, env=server.env or {}) tools = mcp.get_tools() mcp_server = ToolsMCPServer(name=name, tools=tools) mcp_server.run_sse(host=host, port=port) ``` By contrast, the current Streamable HTTP transport validates `Origin` and returns HTTP 403 for an invalid origin: ```python origin = request.headers.get("Origin") if not self._validate_origin(origin): return JSONResponse(..., status_code=403) ``` ## Local-only PoV Run from the harness checkout: ```bash uv run --with mcp --with starlette --with uvicorn --with httpx --with anyio \ python submission-bundle/praisonai-prai-cand-015-mcp-sse-host-origin-bypass/poc/pov_prai_cand_015_sse_mcp_host_origin_bypass.py \ --repo-src artifacts/repos/praisonai-v4.6.58/src ``` Observed current-head result: ```json { "candidate": "PRAI-CAND-015", "http_stream_control": { "attacker_origin": "http://attacker.example.test", "rejects_attacker_origin": true, "status_code": 403, "transport": "current_http_stream" }, "source_checks": { "has_auth_check": false, "has_host_check": false, "has_origin_check": false, "has_sse_transport": true, "route_count": 2 }, "sse_probe": { "attacker_headers": { "Host": "attacker.example.test:62380", "Origin": "http://attacker.example.test:62380" }, "bind_host": "127.0.0.1", "marker_value": "executed-from-attacker-origin", "marker_written": true, "server_started": true, "tool_call_content": [ "recorded:executed-from-attacker-origin" ], "tool_call_error": false, "tool_names": [ "record_marker" ], "vulnerable": true }, "vulnerable": true } ``` The PoV: 1. imports the current `ToolsMCPServer`; 2. registers one marker tool; 3. monkey-patches `uvicorn.run` only to capture the exact Starlette app created by `run_sse()`; 4. starts that app on `127.0.0.1`; 5. connects to `/sse` with attacker-controlled `Host` and `Origin`; 6. lists tools and calls the marker tool; 7. runs a control against PraisonAI's current Streamable HTTP transport and confirms the same attacker `Origin` is rejected with HTTP 403. ## Why this is not intended behavior This is not only a trust-model disagreement. PraisonAI's MCP documentation describes Streamable HTTP, WebSocket, and legacy SSE as supported MCP transport mechanisms. The same documentation says the MCP module's security properties include origin validation, authentication headers, and secure session IDs. The transport guide also has a dedicated security section for origin validation as DNS rebinding prevention and authentication. The official MCP specification warns that HTTP transports need origin validation to prevent DNS rebinding, should bind locally for local servers, and should implement authentication. It also says that without those protections, remote websites can interact with local MCP servers. The upstream MCP Python SDK advisory `GHSA-9h52-p55h-vw2f` / `CVE-2025-66416` classifies unauthenticated localhost HTTP/SSE MCP servers without DNS rebinding protection as a High severity issue because malicious websites can invoke tools or access resources exposed by the local MCP server. That advisory also says custom low-level `SseServerTransport` configurations should explicitly configure transport security settings when running unauthenticated localhost servers. PraisonAI's current Streamable HTTP implementation already enforces an Origin guard and rejects the exact attacker Origin used in the PoV. The issue is that the legacy SSE sibling path lacks the same boundary. ## Suggested severity Suggested severity: High. Rationale: - `AV`: the attack uses browser-origin HTTP requests to a local/internal service. - `AC`: practical exploitation requires DNS rebinding or equivalent browser origin setup. - `PR`: no PraisonAI credentials are required by the SSE server. - `UR`: the user must visit an attacker-controlled page. - `S`: the vulnerable transport exposes tools that operate on resources outside the HTTP transport itself. - `C/I/A`: exposed tools may read, mutate, or disrupt local/internal resources depending on the configured MCP server. ## Suggested fix Bring legacy SSE server security in line with the current Streamable HTTP transport, or disable the legacy SSE server path. Recommended changes: 1. Add explicit allowed-origin and allowed-host validation to both `/sse` and `/messages/`. 2. Reject invalid `Origin` with HTTP 403 before opening the SSE stream or accepting POST messages. 3. Validate `Host` for local and internal deployments to mitigate DNS rebinding even when browsers omit or vary `Origin`. 4. Require authentication for all non-stdio MCP HTTP transports, including SSE. 5. Add `--api-key`, `--allowed-origins`, and `--allowed-hosts` options to `praisonai mcp run` and `praisonai serve mcp` when `--transport sse` is used. 6. Where the installed MCP SDK supports it, configure the SDK transport-security settings for low-level `SseServerTransport` usage instead of mounting it without Host/Origin protection. 7. Consider deprecating or disabling `--transport sse` server mode in favor of the current Streamable HTTP implementation. 8. Add regression tests proving that attacker `Host` and `Origin` values are rejected on both `/sse` and `/messages/`, and that current Streamable HTTP and legacy SSE enforce the same boundary.

Exploitation Scenario

An adversary targeting a developer running PraisonAI locally registers a domain and serves a malicious webpage. JavaScript on the page initially loads from the attacker's real IP; after the browser has cached the origin, the attacker's DNS TTL expires and the domain is re-resolved to 127.0.0.1. The browser's same-origin policy is satisfied because the origin string remains unchanged, but subsequent requests now reach the victim's local PraisonAI SSE MCP server on its bound port. The attacker's JS connects to `/sse`, receives the event stream, enumerates all registered tool names and their input schemas via the MCP protocol, then issues tool invocations via POST to `/messages/`. In a realistic scenario where the PraisonAI agent has GitHub, AWS CLI, or file-system tools registered, the attacker exfiltrates repository tokens, reads sensitive configuration or `.env` files, or triggers infrastructure automation — all through the victim's browser, requiring zero PraisonAI credentials.

Weaknesses (CWE)

CWE-306 — Missing Authentication for Critical Function: The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

  • [Architecture and Design] Divide the software into anonymous, normal, privileged, and administrative areas. Identify which of these areas require a proven user identity, and use a centralized authentication capability. Identify all potential communication channels, or other means of interaction with the software, to ensure that all channels are appropriately protected, including those channels that are assumed to be accessible only by authorized parties. Developers sometimes perform authentication at the primary channel, but open up a secondary channel that is assumed to be private. For example, a login mechanism may be listening on one network port, but after successful authentication, it may open up a second port where it waits for the connection, but avoids authentication because it assumes that only the authenticated party will connect to the port. In general, if the software or protocol allows a single session or user state to persist across multiple connections or channels, authentication and appropriate
  • [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Timeline

Published
June 18, 2026
Last Modified
June 18, 2026
First Seen
June 18, 2026

Related Vulnerabilities