Skip to main content

praisonaiagents EUVDEUVD-2026-65501

| CVE-2026-55530 MEDIUM
Missing Authorization (CWE-862)
2026-08-25 GitHub_M GHSA-cfxv-8fw8-rwpv
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    User initiates PraisonAI agent session with code_intelligence profile
  2. Delivery
    Adversarial prompt injected into agent input
  3. Exploit
    LLM calls ast_grep_rewrite with dry_run=False and broad filesystem path
  4. Execution
    Missing @require_approval gate bypassed silently
  5. Persist
    ast-grep --update-all rewrites all matching source files
  6. Impact
    Function returns 'No changes made' concealing modification from operator logs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the PraisonAI agent has ast_grep_rewrite registered as a callable tool, which occurs when the code_intelligence built-in profile is active or when the tool is manually registered. The ast-grep CLI must be installed in the system PATH. The LLM must invoke the function with dry_run=False - a parameter the model controls directly - and must supply a path and pattern that match target files. A human operator must initiate the agent session (UI:R per CVSS), but the file rewrite occurs without further operator interaction or approval once the session is running. Exploitation is not possible if the code_intelligence profile is disabled, if ast_grep_rewrite is not registered as a tool, if the ast-grep CLI is absent from the PATH, or if dry_run is externally forced to True. The attacker cannot exfiltrate file contents - impact is limited to in-place integrity modification of files accessible to the process user.

Impact

The CVSS 3.1 score of 6.1 (Medium) reflects a local attack vector (AV:L) and absent confidentiality impact, which moderate the score despite the high integrity impact of arbitrary file rewriting. The real-world risk is higher than this score suggests in agentic deployment contexts - the local vector is expected behavior for agent frameworks, and the relevant threat model is an LLM being manipulated via prompt injection to issue unauthorized tool calls, not a conventional local-access exploit. No EPSS data was available in the provided intelligence. The vulnerability is not in CISA KEV. Publicly available exploit code exists, confirmed by the proof-of-concept included in GHSA-cfxv-8fw8-rwpv, establishing that exploitation is practical without special tooling beyond installing praisonaiagents and the ast-grep CLI. A secondary silent-failure defect - the function returns 'No changes made' even after modifying files - substantially impairs detection and post-incident forensics, increasing operational risk beyond what the CVSS score captures. Organizations running automated agentic coding pipelines that expose the code_intelligence profile should treat this as a priority fix independent of the moderate base score.

Exploit ScenarioDerived

An attacker crafts adversarial input - via prompt injection in a document processed by the agent or a malicious task description - causing the LLM to call ast_grep_rewrite with dry_run=False, a destructive rewrite pattern, and a broad filesystem path such as the project root. Because the @require_approval gate is absent, the ast-grep CLI immediately rewrites all matching source files without operator confirmation, and the function then returns 'No changes made' to the LLM caller, suppressing any indication of the write in session logs. A self-contained proof-of-concept demonstrating this sequence is included in GHSA-cfxv-8fw8-rwpv.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 25, 2026

Unauthorized filesystem mutation in praisonaiagents allows an LLM-controlled agent to rewrite arbitrary on-disk source files by invoking ast_grep_rewrite with dry_run=False, bypassing the @require_approval authorization gate uniformly enforced on every sibling mutation tool in the framework. All praisonaiagents releases prior to 1.6.58 are affected; the vulnerable function is registered as a top-level tool and exposed through the code_intelligence built-in profile. Exploitability is confirmed by a proof-of-concept in GHSA advisory GHSA-cfxv-8fw8-rwpv, and a secondary defect causes the function to return 'No changes made' to the caller even when files were modified, silently concealing the write.

RemediationAI

Upgrade praisonaiagents to version 1.6.58 or later using pip install --upgrade praisonaiagents; this release adds @require_approval(risk_level='high') to ast_grep_rewrite in ast_grep_tool.py, consistent with all sibling mutation tools. If immediate upgrade is not feasible, disable the code_intelligence built-in tool profile in your PraisonAI agent configuration to prevent ast_grep_rewrite from being registered as an available tool - note this also removes other ast_grep_* search capabilities as a side effect. As a secondary compensating control, ensure the PRAISONAI_AUTO_APPROVE environment variable is unset so that other approved tools still route through the interactive gate; this does not fix the missing decorator on ast_grep_rewrite but reduces the blast radius of adjacent tool misuse. The patch commit is at https://github.com/MervinPraison/PraisonAI/commit/2f9677abb2ea68eab864ee8b6a828fd0141612e1.

Affected VersionsENISA

PraisonAI < 4.6.58
praisonaiagents < 1.6.58

Affected Packages

pypi praisonaiagents fix: 1.6.58
euvd praisonai fix: 4.6.58

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-862 (Missing Authorization). The praisonaiagents framework (cpe:2.3:a:mervinpraison:praisonaiagents) implements a @require_approval decorator that gates all mutation tools - file copy, move, delete, in-place edit, shell execution, and code execution - through an interactive approval flow that raises PermissionError on denial or when no approval backend is configured, ensuring no side effect occurs without operator consent. The ast_grep_rewrite function in ast_grep_tool.py is structurally a sibling of these mutation tools: it constructs an ast-grep CLI command with --update-all and an operator-supplied path, then calls subprocess.run() to perform in-place rewrites across all matching files. The function was shipped without the @require_approval decorator and without importing the approval module, has no _validate_path workspace check, and provides no cwd= sandboxing. It is registered in __init__.py and exposed via the code_intelligence built-in profile, making it directly accessible to any LLM agent using that profile.

Know when Praisonai gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
vuln.today AI 6.1 MEDIUM

Local tool callable by any LLM agent without additional OS privileges; human must initiate the session (UI:R); file rewriting yields integrity-only impact with no confidentiality or significant availability consequence.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

Lifecycle Timeline

1
Patch available
Aug 25, 2026 - 16:02 EUVD

DescriptionCVE.org

PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.58, ast_grep_rewrite lacks the @require_approval decorator used by sibling mutation tools. With dry_run=False, an agent-controlled call can pass --update-all and a broad path to rewrite matching files without the expected authorization gate. This issue is fixed in version 1.6.58.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche AI agent framework, limited enterprise footprint
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-57139 CRITICAL POC
9.8 Sep 15

PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans

CVE-2026-55536 CRITICAL POC
9.1 Aug 25

WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att

CVE-2026-55541 HIGH POC
8.8 Aug 25

PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne

CVE-2026-55534 HIGH POC
8.6 Aug 25

Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller

CVE-2026-55526 HIGH POC
8.5 Aug 25

SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou

CVE-2026-55533 HIGH POC
8.2 Aug 25

Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec

CVE-2026-55528 HIGH POC
8.2 Aug 25

Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u

CVE-2026-55522 HIGH POC
7.8 Aug 05

Arbitrary Python code execution in PraisonAI's workflow include feature allows an attacker who controls a local recipe d

CVE-2026-55523 HIGH POC
7.7 Aug 05

Server-side request forgery in PraisonAI's web_crawl() function (versions 1.5.128-1.6.57) allows an attacker who can inf

CVE-2026-55532 HIGH POC
7.6 Aug 25

Cross-site request forgery against the PraisonAI MCP HTTP-stream transport allows unauthenticated remote attackers to ex

CVE-2026-44338 HIGH POC
7.3 May 08

Remote unauthenticated access to PraisonAI's legacy Flask API server allows attackers to execute configured agent workfl

CVE-2026-55527 HIGH POC
7.1 Aug 25

Path traversal in praisonaiagents prior to 1.6.58 allows a low-privileged caller to write arbitrary JSON files to any pr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy