GHSA-vmf9-xx9w-86wx: PraisonAI ToolsMCPServer legacy SSE transport accepts attacker Host/Origin and exposes registered tools
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:
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 --transpo
Details
Original advisory: https://github.com/advisories/GHSA-vmf9-xx9w-86wx
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-57112 | coverage & exploitation status | NVD · CVE.org |
More from GitHub Security Advisories
- mediumGHSA-xm43-3m56-w3wf: Ghost: Paid gift memberships obtainable at minimal cost via the donations feature2026-08-04
- mediumGHSA-chgm-3698-jm42: Ghost: Member existence leak via magic link sign-in response2026-08-04
- highGHSA-xpp7-93x6-v29m: XSS in Ghost's ActivityPub client2026-08-04
- mediumGHSA-7mpp-r37j-x5wh: Ghost: Session Fixation in Ghost Admin2026-08-04
- mediumGHSA-cjc9-q5gf-327p: Ghost: Theme Upload Path Traversal2026-08-04