Summary
CVE-2026-57125 is a critical, unauthenticated remote code execution vulnerability in PraisonAI’s Jobs API. The flaw chains a missing-authentication issue on the job submission endpoint with a logic flaw that lets an attacker-supplied field bypass the tool-approval safety control, allowing arbitrary OS command execution on the host running PraisonAI. The issue is rated CVSS 9.8 (Critical) and requires no credentials or user interaction to exploit.
Technical details
- Root cause: The
POST /api/v1/runsJobs API endpoint accepts a fully attacker-controlledagent_yamlworkflow definition and does not require authentication. Within that YAML, a top-levelapprovefield is processed by the workflow parser (praisonaiagents/workflows/yaml_parser.py) in a way that unconditionally marks tools — includingexecute_command— as pre-approved, bypassing the intended@require_approvalsafety decorator that is supposed to gate dangerous tool calls. - Trigger conditions: An attacker submits a crafted job containing an agent configuration that invokes
execute_command(or another dangerous tool) along with anapprovefield naming that tool. No prior approval step, session, or credential is required. - Attack vector: Network-based, unauthenticated, single HTTP request to the Jobs API; no user interaction needed.
- Impact: Full compromise of confidentiality, integrity, and availability of the host — the attacker can execute arbitrary operating system commands with the privileges of the PraisonAI process.
Affected software
praisonai(PyPI package) — versions ≤ 4.6.48 (fixed in 4.6.59)praisonaiagents(PyPI package) — versions ≤ 1.6.58 (fixed in 1.6.59)
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade
praisonaito version 4.6.59 or later, andpraisonaiagentsto version 1.6.59 or later, which remediate the authentication gap and the approval-bypass logic. - If patching is not immediately possible:
- Do not expose the PraisonAI Jobs API (
/api/v1/runs) directly to the internet; place it behind authentication (reverse proxy, API gateway) and restrict access to trusted networks only. - Remove or disable the
approvefield handling in workflow submissions, or restrictapprove_toolsto a strict allowlist of non-dangerous tools (e.g.,web_search,read_file,write_file) and excludeexecute_commandand similar high-risk tools. - Monitor and alert on unauthenticated calls to the Jobs API and on unexpected use of
execute_commandor other shell/OS-command tools triggered via job submissions.
- Do not expose the PraisonAI Jobs API (

