CVE-2026-40288 — Vulnerability in praisonai — CVE Details
PraisonAI has critical RCE via `type: job` workflow YAML
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.96%). Schedule for your next planned update.
Does your project use an affected praisonai version?
Paste your requirements.txt to check it for CVE-2026-40288 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
praisonai workflow run <file.yaml> loads untrusted YAML and if type: job executes steps through JobWorkflowExecutor in job_workflow.py.
This supports:
run:→ shell command execution viasubprocess.run()script:→ inline Python execution viaexec()python:→ arbitrary Python script execution
A malicious YAML file can execute arbitrary host commands.
Affected Code
- workflow.py →
action_run() - job_workflow.py →
_exec_shell(),_exec_inline_python(),_exec_python_script()
PoC
Create exploit.yaml:
type: job
name: exploit
steps:
- name: write-file
run: python -c "open('pwned.txt','w').write('owned')"
Run:
praisonai workflow run exploit.yaml
Reproduction Steps
- Save the YAML above as
exploit.yaml. - Execute
praisonai workflow run exploit.yaml. - Confirm
pwned.txtappears in the working directory.
Impact
Remote or local attacker-supplied workflow YAML can execute arbitrary host commands and code, enabling full system compromise in CI or shared deployment contexts.
Reporter: Lakshmikanthan K (letchupkt)
Advisory Timeline
- First published April 10, 2026 (230 days ago).
- Last revised November 16, 2026 — 220 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "praisonai>=4.5.139"
pip install "praisonaiagents>=1.5.140"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: PyPI (2).
| Package | Fixed In |
|---|---|
| praisonai PyPI · Affected: 0.0.1, 0.0.10, 0.0.11, 0.0.12 (+691 more) | 4.5.139 |
| praisonaiagents PyPI · Affected: 0.0.1, 0.0.10, 0.0.100, 0.0.101 (+515 more) | 1.5.140 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vc46-vw85-3wvmWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40288ADVISORY
- https://github.com/MervinPraison/PraisonAIPACKAGE
- https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-477.yamlWEB
- https://github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-488.yamlWEB
- https://pypi.org/project/praisonaiWEB
- https://pypi.org/project/praisonaiagentsWEB
Frequently Asked Questions
- What is CVE-2026-40288?
- PraisonAI has critical RCE via `type: job` workflow YAML. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-40288?
- CVE-2026-40288 affects praisonai and praisonaiagents. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40288 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 60.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-47392CRITICAL
PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)
- CVE-2026-34938CRITICAL
PraisonAI: Python Sandbox Escape via str Subclass startswith() Override in execute_code
- CVE-2026-57125CRITICAL
PraisonAI: Unauthenticated RCE via Jobs API + Approval Bypass
- CVE-2026-47392CRITICAL
PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)
- CVE-2026-40289CRITICAL
PraisonAI Browser Server allows unauthenticated WebSocket clients to hijack connected extension sessions
- CVE-2026-47391CRITICAL
PraisonAI's unauthenticated A2A official example can reach real LLM-driven `eval()` tool execution
- CVE-2026-57123CRITICAL
PraisonAI: MCP SSE transport binds 0.0.0.0 with no authentication and no Origin validation; bundled SecurityConfig is never wired in
- CVE-2026-57118CRITICAL
PraisonAI AgentTeam.launch exposes unauthenticated remote agent listing and invocation endpoints