PraisonAI: Cross-Origin Agent Execution via Hardcoded Wildcard CORS and Missing Authentication on AGUI Endpoint
GHSA-x462-jjpc-q4q4 · published 2026-04-10
- Severity
- High
- CVSS score
- 8.1
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 4.5.128
Remote code/tool execution: Any website can trigger agent execution on a victim's local machine with the full permissions of the server process and all configured agent tools Data exfiltration: Agent responses (including tool outputs like file contents, command results, API responses) are readable cross-origin due to the wildcard CORS header No user awareness: The attack is silent — no browser prompts, no visible indicators.
Upgrade praisonaiagents to 4.5.128 or later.
1. Remove the hardcoded wildcard CORS headers and make CORS configurable: 2. Remove CORS headers from the StreamingResponse and let consumers configure CORS via FastAPI's CORSMiddleware with specific origins: 3. Add a Content-Type check as defense-in-depth to prevent simple-request CORS bypass: 4. Add authentication support (e.g., an API key or bearer token dependency on the router) so that cross-origin requests without valid credentials are rejected.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| praisonaiagents | PyPI | < 4.5.128 | 4.5.128 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- CriticalPraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secretspraisonaiagents
- CriticalPraisonAI: Unauthenticated RCE via Jobs API + Approval Bypasspraisonaiagents, praisonai
- CriticalPraisonAI: MCP SSE transport binds 0.0.0.0 with no authentication and no Origin validation; bundled SecurityConfig is never wired inpraisonaiagents
- CriticalPraisonAI AgentTeam.launch exposes unauthenticated remote agent listing and invocation endpointspraisonaiagents
- CriticalPraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)praisonaiagents, praisonai
- CriticalPraisonAI Browser Server allows unauthenticated WebSocket clients to hijack connected extension sessionspraisonaiagents, praisonai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.