CVE-2026-40288: Praisonaiagents Job` Workflow YAML Vulnerability
CRITICALCVE-2026-40288 is a CRITICAL (CVSS 9.8) job` workflow yaml vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Praisonaiagents libraries in the PyPI ecosystem. The issue involves job` workflow yaml. Remediation is available by upgrading affected packages to version 1.5.140, 4.5.139.
CVE-2026-40288 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-40288
To remediate this vulnerability, upgrade all affected Praisonaiagents dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install praisonaiagents>=1.5.140
pip install PraisonAI>=4.5.139
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show praisonaiagents
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-40288, inspect your installed packages using pip:
pip show praisonaiagents
Analyze the terminal output to locate any version of Praisonaiagents in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.140), your application is affected.
Note: The pip show praisonaiagents command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Praisonaiagents, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40288 Affected Praisonaiagents Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
praisonaiagents
|
PyPI |
< 1.5.140
|
1.5.140
|
|
PraisonAI
|
PyPI |
< 4.5.139
|
4.5.139
|
References
Frequently Asked Questions
What is CVE-2026-40288?
Which Praisonaiagents versions are affected?
What version fixes CVE-2026-40288?
Is praisonaiagents affected?
Is PraisonAI affected?
What is the CVSS score of CVE-2026-40288?
What CWE is associated with CVE-2026-40288?
How can I check PyPI dependencies for CVE-2026-40288?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vc46-vw85-3wvm",
"modified" : "2026-04-14T21:54:30Z",
"published" : "2026-04-10T19:32:48Z",
"aliases" : [ "CVE-2026-40288" ],
"summary" : "PraisonAI has critical RCE via `type: job` workflow YAML",
"details" : "`praisonai workflow run <file.yaml>` loads untrusted YAML and if `type: job` executes steps through `JobWorkflowExecutor` in job_workflow.py.\n\nThis supports:\n- `run:` → shell command execution via `subprocess.run()`\n- `script:` → inline Python execution via `exec()`\n- `python:` → arbitrary Python script execution\n\nA malicious YAML file can execute arbitrary host commands.\n\n### Affected Code\n- workflow.py → `action_run()`\n- job_workflow.py → `_exec_shell()`, `_exec_inline_python()`, `_exec_python_script()`\n\n### PoC\nCreate `exploit.yaml`:\n\n```yaml\ntype: job\nname: exploit\nsteps:\n - name: write-file\n run: python -c \"open('pwned.txt','w').write('owned')\"\n```\n\nRun:\n\n```bash\npraisonai workflow run exploit.yaml\n```\n\n### Reproduction Steps\n1. Save the YAML above as `exploit.yaml`.\n2. Execute `praisonai workflow run exploit.yaml`.\n3. Confirm `pwned.txt` appears in the working directory.\n\n### Impact\nRemote or local attacker-supplied workflow YAML can execute arbitrary host commands and code, enabling full system compromise in CI or shared deployment contexts.\n\n**Reporter:** Lakshmikanthan K (letchupkt)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "praisonaiagents"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.140"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.5.139"
}
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "PraisonAI"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5.139"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.5.138"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vc46-vw85-3wvm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40288"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/MervinPraison/PraisonAI"
}, {
"type" : "WEB",
"url" : "https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.139"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78", "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-10T19:32:48Z",
"nvd_published_at" : "2026-04-14T04:17:12Z"
}
}