CVE-2026-40288
PraisonAI: Critical RCE via `type: job` workflow YAML
Also known as GHSA-vc46-vw85-3wvm, PYSEC-2026-477, PYSEC-2026-488
Mitigation
- Upgrade praisonaiagents to 1.5.140 or later.
- Upgrade praisonai to 4.5.139 or later.
Who should check
- Projects that depend on PyPI package praisonaiagents (< 1.5.140)
- Projects that depend on PyPI package praisonai (< 4.5.139)
- Anyone running MervinPraison PraisonAI < 4.5.139
- Anyone running MervinPraison praisonaiagents < 1.5.140
Vulnerability facts
- Affected
- praisonaiagents < 1.5.140; praisonai < 4.5.139
- Fixed in
- 1.5.140, 4.5.139
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.96% chance of exploitation in 30 days (percentile 60, 2026-11-26)
- CWE
- CWE-78, CWE-94
- Modified
Description
PraisonAI is a multi-agent teams system. In versions below 4.5.139 of PraisonAI and 1.5.140 of praisonaiagents, the workflow engine is vulnerable to arbitrary command and code execution through untrusted YAML files. When praisonai workflow run <file.yaml> loads a YAML file with type: job, the JobWorkflowExecutor in job_workflow.py processes steps that support run: (shell commands via subprocess.run()), script: (inline Python via exec()), and python: (arbitrary Python script execution)—all without any validation, sandboxing, or user confirmation. The affected code paths include action_run() in workflow.py and _exec_shell(), _exec_inline_python(), and _exec_python_script() in job_workflow.py. An attacker who can supply or influence a workflow YAML file (particularly in CI pipelines, shared repositories, or multi-tenant deployment environments) can achieve full arbitrary command execution on the host system, compromising the machine and any accessible data or credentials. This issue has been fixed in versions 4.5.139 of PraisonAI and 1.5.140 of praisonaiagents.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI praisonaiagents | < 1.5.140 | 1.5.140 | osv |
| PyPI praisonai | < 4.5.139 | 4.5.139 | osv |
| MervinPraison PraisonAI | < 4.5.139 | — | cvelist |
| MervinPraison praisonaiagents | < 1.5.140 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-40288. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-40288.md Affected: praisonaiagents < 1.5.140; praisonai < 4.5.139 Fixed in: 1.5.140, 4.5.139 Steps: 1. Search this machine and project for praisonaiagents (PyPI), praisonai (PyPI), MervinPraison PraisonAI, MervinPraison praisonaiagents: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://github.com/MervinPraison/PraisonAI
- https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139
- https://github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-477.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-488.yaml
- https://pypi.org/project/praisonai
- https://pypi.org/project/praisonaiagents
FAQ
Is CVE-2026-40288 being exploited?
There is no confirmed exploitation: CVE-2026-40288 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-40288?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-40288?
praisonaiagents < 1.5.140; praisonai < 4.5.139.
Is there a fix for CVE-2026-40288?
Yes. Fixed in 1.5.140, 4.5.139. Upgrade praisonaiagents to 1.5.140 or later. Upgrade praisonai to 4.5.139 or later.
How do I check if I'm affected by CVE-2026-40288?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.