GHSA-x227-pf99-vffg: praisonaiagents: unauthenticated MCP SSE server enables RCE

GHSA-x227-pf99-vffg CRITICAL
Published June 18, 2026
CISO Take

The praisonaiagents MCP SSE server binds to all network interfaces (0.0.0.0) by default and ships with a complete security module — origin validation, DNS-rebinding detection, auth-header enforcement — that is never wired into any transport, making it entirely dead code. Any host that can reach port 8080 can enumerate and invoke every registered tool without a single credential, and a malicious webpage can exploit DNS rebinding to drive the same JSON-RPC calls cross-origin against a developer's localhost instance. With CVSS 9.8 (AV:N/AC:L/PR:N/UI:N), no exploit prerequisites, and blast radius equal to the capabilities of registered tools — commonly file I/O, shell execution, and code eval in agentic workflows — this is effectively unauthenticated RCE on any default deployment. Patch to praisonaiagents 1.6.59 immediately; if patching is delayed, explicitly bind to 127.0.0.1 and enforce network-layer controls blocking external access to the SSE port.

Sources: GitHub Advisory ATLAS NVD

What is the risk?

Critical. The CVSS 9.8 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) accurately reflects the exposure: network-reachable, zero authentication, trivially exploitable with a plain curl command. The security controls exist in the codebase but are dead code — there is no configuration or runtime option that activates them in the current transport layer. Developer machines are the primary at-risk surface (local SSE servers used during agent development), but any CI/CD pipeline, staging environment, or cloud-deployed agent using default settings is equally exposed. The DNS rebinding vector expands risk beyond same-network attackers to any web origin that can be visited by a user on the same host. With 11 downstream package dependents and 41 prior CVEs in the same package, the ecosystem trust posture is low.

How does the attack unfold?

Initial Access
Adversary identifies a host running praisonaiagents SSE server on port 8080 via network scan, or uses a malicious webpage to execute a DNS rebinding attack that resolves to the victim's 127.0.0.1.
AML.T0049
Tool Discovery
Adversary establishes an SSE session by connecting to /sse (receiving a session_id), then issues an unauthenticated tools/list JSON-RPC call to enumerate all registered agent tools and their parameter schemas.
AML.T0084.001
Unauthenticated Tool Invocation
Adversary selects a high-impact tool (shell executor, file writer, or code evaluator) and issues a tools/call JSON-RPC request with a malicious payload — no Authorization header is required at any step.
AML.T0053
Impact
Depending on registered tools, adversary achieves remote code execution, arbitrary file read/write, credential theft from agent configuration, or full host compromise at the privilege level of the agent process.
AML.T0112

What systems are affected?

Package Ecosystem Vulnerable Range Patched
PraisonAI pip No patch
1 dependents 68% patched ~13d to patch Full package profile →
PraisonAI Agents pip < 1.6.59 1.6.59
11 dependents 65% patched ~6d to patch Full package profile →

How severe is it?

CVSS 3.1
9.8 / 10
EPSS
N/A
Exploitation Status
No known exploitation
Sophistication
Trivial

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR None
UI None
S Unchanged
C High
I High
A High

What should I do?

6 steps
  1. PATCH

    Upgrade praisonaiagents to >= 1.6.59 immediately — this is the only fully supported remediation.

  2. WORKAROUND (if patching is delayed): Explicitly pass host='127.0.0.1' to run_sse() and launch_tools_mcp_server() to restrict binding to loopback only.

  3. NETWORK CONTROLS

    Apply firewall rules blocking inbound connections to the SSE port (default 8080) from untrusted networks; on cloud hosts, use security groups or iptables to allow only trusted source IPs.

  4. AUDIT TOOLS

    Inventory all tools registered to SSE-exposed agents; remove or disable file/shell/code-exec tools until patched.

  5. DETECTION

    Monitor for unexpected HTTP connections to the SSE endpoint (GET /sse, POST /messages/) from non-localhost sources; alert on tools/call invocations from unexpected session IDs.

  6. DNS REBINDING

    Deploy DNS rebinding protections at the network layer (split-horizon DNS, local resolver rebinding protection) for developer environments.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15 - Accuracy, robustness and cybersecurity Article 9 - Risk management system
ISO 42001
6.1.2 - AI risk assessment 9.1 - Monitoring, measurement, analysis and evaluation
NIST AI RMF
MANAGE 2.2 - Mechanisms are in place and applied to sustain the value of deployed AI systems and help ensure that the AI system will be used as intended
OWASP LLM Top 10
LLM07 - Insecure Plugin Design

Frequently Asked Questions

What is GHSA-x227-pf99-vffg?

The praisonaiagents MCP SSE server binds to all network interfaces (0.0.0.0) by default and ships with a complete security module — origin validation, DNS-rebinding detection, auth-header enforcement — that is never wired into any transport, making it entirely dead code. Any host that can reach port 8080 can enumerate and invoke every registered tool without a single credential, and a malicious webpage can exploit DNS rebinding to drive the same JSON-RPC calls cross-origin against a developer's localhost instance. With CVSS 9.8 (AV:N/AC:L/PR:N/UI:N), no exploit prerequisites, and blast radius equal to the capabilities of registered tools — commonly file I/O, shell execution, and code eval in agentic workflows — this is effectively unauthenticated RCE on any default deployment. Patch to praisonaiagents 1.6.59 immediately; if patching is delayed, explicitly bind to 127.0.0.1 and enforce network-layer controls blocking external access to the SSE port.

Is GHSA-x227-pf99-vffg actively exploited?

No confirmed active exploitation of GHSA-x227-pf99-vffg has been reported, but organizations should still patch proactively.

How to fix GHSA-x227-pf99-vffg?

1. PATCH: Upgrade praisonaiagents to >= 1.6.59 immediately — this is the only fully supported remediation. 2. WORKAROUND (if patching is delayed): Explicitly pass host='127.0.0.1' to run_sse() and launch_tools_mcp_server() to restrict binding to loopback only. 3. NETWORK CONTROLS: Apply firewall rules blocking inbound connections to the SSE port (default 8080) from untrusted networks; on cloud hosts, use security groups or iptables to allow only trusted source IPs. 4. AUDIT TOOLS: Inventory all tools registered to SSE-exposed agents; remove or disable file/shell/code-exec tools until patched. 5. DETECTION: Monitor for unexpected HTTP connections to the SSE endpoint (GET /sse, POST /messages/) from non-localhost sources; alert on tools/call invocations from unexpected session IDs. 6. DNS REBINDING: Deploy DNS rebinding protections at the network layer (split-horizon DNS, local resolver rebinding protection) for developer environments.

What systems are affected by GHSA-x227-pf99-vffg?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, local development environments, MCP tool servers, agentic pipelines, multi-agent orchestration systems.

What is the CVSS score for GHSA-x227-pf99-vffg?

GHSA-x227-pf99-vffg has a CVSS v3.1 base score of 9.8 (CRITICAL).

What is the AI security impact?

Affected AI Architectures

agent frameworkslocal development environmentsMCP tool serversagentic pipelinesmulti-agent orchestration systems

MITRE ATLAS Techniques

AML.T0006 Active Scanning
AML.T0049 Exploit Public-Facing Application
AML.T0053 AI Agent Tool Invocation
AML.T0078 Drive-by Compromise
AML.T0084.001 Tool Definitions

Compliance Controls Affected

EU AI Act: Article 15, Article 9
ISO 42001: 6.1.2, 9.1
NIST AI RMF: MANAGE 2.2
OWASP LLM Top 10: LLM07

What are the technical details?

Original Advisory

The MCP SSE server started via ToolsMCPServer.run_sse() / launch_tools_mcp_server(transport="sse") binds to 0.0.0.0 by default and builds its Starlette application with no authentication middleware and no Origin-header validation. The module mcp/mcp_security.py provides exactly the needed controls (origin validation, DNS-rebinding detection, auth-header enforcement, a SecurityConfig), but none of these functions are ever called by any transport — they are dead code. Any host that can reach the port can list and invoke every registered tool with no credentials, and a victim's browser can drive the same calls against a localhost instance via DNS rebinding. Affected code: src/praisonai-agents/praisonaiagents/mcp/mcp_server.py - run_sse defaults host to all interfaces (line 245) and builds the app with only `debug` and `routes` - no `middleware=` and no per-route auth/origin gate (lines ~271-289): app = Starlette(debug=self._debug, routes=[ Route(sse_path, endpoint=handle_sse), # "/sse" Mount(messages_path, app=sse_transport.handle_post_message), # "/messages/" ]) uvicorn.run(app, host=host, port=port) - launch_tools_mcp_server also defaults host="0.0.0.0" (line 301). src/praisonai-agents/praisonaiagents/mcp/mcp_security.py defines but the transports never call: - is_valid_origin (line 30), is_potential_dns_rebinding (line 110), validate_auth_header (line 167), SecurityConfig.is_origin_allowed (line 236). These symbols are referenced only inside mcp_security.py and the __init__ re-export. (mcp_websocket.py's auth references are CLIENT-side, not server validation.) Impact: launch_tools_mcp_server(transport="sse") is the documented path for exposing tools over MCP. With the defaults above it is an unauthenticated, network-reachable tool-execution endpoint. Blast radius equals the capabilities of the registered tools; with file/shell/code-exec tools this is RCE. With no Origin check, a malicious page the victim merely visits can rebind its hostname to 127.0.0.1 and issue the JSON-RPC calls cross-origin against a developer's local server. Proof of concept: Static proof (AST analysis of unmodified source): Check 1 - run_sse(host='0.0.0.0'); launch_tools_mcp_server(host='0.0.0.0') -> EXPOSED Check 2 - Starlette(...) kwargs: ['debug','routes'] -> NO middleware= (no auth/origin gate) Check 3 - is_valid_origin / is_potential_dns_rebinding / validate_auth_header / SecurityConfig never called by any transport -> DEAD CODE Live exploitation against a running server: curl -N http://VICTIM:8080/sse # event: endpoint / data: /messages/?session_id=<sid> curl -X POST "http://VICTIM:8080/messages/?session_id=<sid>" -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05", "capabilities":{},"clientInfo":{"name":"x","version":"1"}}}' curl -X POST "http://VICTIM:8080/messages/?session_id=<sid>" -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"<tool>","arguments":{...}}}' No Authorization header anywhere. Browser DNS-rebinding variant drives the same calls cross-origin. Remediation: Wire in the existing mcp_security.py controls and fix defaults: - Default run_sse(host="127.0.0.1"); require explicit opt-in to bind 0.0.0.0. - Attach Starlette middleware calling is_valid_origin / is_potential_dns_rebinding; reject bad origins. - Enforce validate_auth_header when SecurityConfig.require_auth; default require_auth=True (and allow_missing_origin=False) for any non-loopback bind. Distinct from prior advisories: The accepted MCP advisories are tool-handler bugs — tools/call path traversal -> .pth RCE (GHSA-9mqq-jqxf-grvw) and unauthenticated file read via workflow.show/validate (GHSA-9cr9-25q5-8prj). This is a transport-layer missing-auth/exposure: the SSE server never enforces auth or Origin validation and ignores the security module the codebase ships. Closest in spirit to the default-insecure pattern (GHSA-8444 / 86qc) but a different server and a different root cause (unwired controls, not an unset env var).

Exploitation Scenario

An adversary on the same corporate network — or a red teamer operating via a malicious webpage visited by a developer — targets a praisonaiagents SSE server running with default settings. Step 1: connect to http://target:8080/sse; the server immediately streams back a session endpoint. Step 2: POST a JSON-RPC initialize call to /messages/?session_id=<sid> — no Authorization header required. Step 3: call tools/list to enumerate all registered agent tools, identifying a bash_tool or file_write_tool. Step 4: invoke tools/call with the target tool and payload (e.g., a reverse shell command). The entire sequence requires only curl and takes under 60 seconds. For the DNS rebinding variant: adversary hosts a webpage at attacker.com, configures DNS to rebind attacker.com to 127.0.0.1 after initial load, then JavaScript drives the same JSON-RPC sequence cross-origin against the developer's local server — bypassing Same-Origin Policy because the browser now believes it is talking to attacker.com.

Weaknesses (CWE)

CWE-1327 — Binding to an Unrestricted IP Address: The product assigns the address 0.0.0.0 for a database server, a cloud service/instance, or any computing resource that communicates remotely.

  • [System Configuration] Assign IP addresses that are not 0.0.0.0.
  • [System Configuration] Unwanted connections to the configured server may be denied through a firewall or other packet filtering measures.

Source: MITRE CWE corpus.

CVSS Vector

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

Timeline

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

Related Vulnerabilities