praisonaiagents: ast_grep_rewrite rewrites arbitrary files without the @require_approval gate enforced on every sibling mutation tool
CVE-2026-55530 · GHSA-cfxv-8fw8-rwpv · published 2026-08-25
- Severity
- Medium
- CVSS score
- 6.1
- Chance of exploitation (EPSS)
- 0.17%
- Fixed in
- 1.6.58
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
Target: PraisonAI (MervinPraison/PraisonAI) Affected component: praisonaiagents/tools/astgreptool.py — astgreprewrite Affected versions: master at ce97667156a116c50b4a3d1aa21e09f048903fda; reproduced against the current praisonaiagents PyPI release (praisonaiagents <= 1.6.52).
Upgrade praisonaiagents to 1.6.58 or later.
high matches the file-modifying siblings; critical is defensible given the write→exec escalation. In the same patch: add a validatepath workspace boundary check (cf. edittools.py:27); fix the No changes made return so it reflects actual modifications; apply the decorator to astgrepscan (astgreptool.py:243) if it can write. astgrepsearch is read-only and can stay undecorated. A regression test asserting astgrep_rewrite requires approval (alongside the other mutation tools) would have caught this at review time.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| praisonaiagents | PyPI | < 1.6.58 | 1.6.58 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
- 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.