CVE-2026-57119: PraisonAI Unauthenticated Local File Inclusion Vulnerability
HIGHCVE-2026-57119 is a HIGH (CVSS 7.5) unauthenticated local file inclusion vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting PraisonAI libraries in the PyPI ecosystem. The issue involves unauthenticated local file inclusion via agent_file path in praisonai jobs api. Remediation is available by upgrading affected packages to version 4.6.59.
CVE-2026-57119 at a Glance
Security Impact
CVSS: 7.5
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:N/A:N).
How to Fix CVE-2026-57119
To remediate this vulnerability, upgrade all affected PraisonAI 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 praisonai>=4.6.59
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show praisonai
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-57119, inspect your installed packages using pip:
pip show praisonai
Analyze the terminal output to locate any version of PraisonAI in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.59), your application is affected.
Note: The pip show praisonai command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In PraisonAI, 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-57119 Affected PraisonAI Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
praisonai
|
PyPI |
< 4.6.59
|
4.6.59
|
References
Frequently Asked Questions
What is CVE-2026-57119?
Which PraisonAI versions are affected?
What version fixes CVE-2026-57119?
Is praisonai affected?
What is the CVSS score of CVE-2026-57119?
What CWE is associated with CVE-2026-57119?
How can I check PyPI dependencies for CVE-2026-57119?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p4pj-vh7h-6cqh",
"modified" : "2026-07-20T21:24:29Z",
"published" : "2026-06-18T13:56:04Z",
"aliases" : [ "CVE-2026-57119" ],
"summary" : "PraisonAI: Unauthenticated Local File Inclusion via agent_file path in PraisonAI Jobs API",
"details" : "### Summary\nAn unauthenticated attacker can read arbitrary files on the server by supplying an absolute filesystem path in the `agent_file` field of the Jobs API. The field has no path validation, no allowlist, and no authentication is required to submit jobs.\n\n### Details\nThe `agent_file` field in `JobSubmitRequest` accepts any filesystem path with no validation:\n\n```python\n# src/praisonai/praisonai/jobs/models.py:29\nagent_file: Optional[str] = Field(None, description=\"Path to agents.yaml file\")\n# NO path validator, NO allowlist\n```\n\nThe executor reads the file directly:\n\n```python\n# src/praisonai/praisonai/jobs/executor.py:221\nagent_file = job.agent_file or \"agents.yaml\"\n# passed directly to yaml.safe_load(open(agent_file))\n```\n\n### Proof of Concept\n\n```bash\ncurl -X POST http://:8005/api/v1/runs \\\n -H \"Content-Type: application/json\" \\\n -d '{\"prompt\": \"run\", \"agent_file\": \"/etc/passwd\"}'\n```\n\nServer responds with contents of `/etc/passwd`.\n\nOther exploitable paths:\n- `/proc/1/environ` — environment variables, API keys\n- `/home//.ssh/id_rsa` — SSH private keys\n- `/app/.env` — application secrets\n\n### Impact\nAny unauthenticated attacker with network access to port 8005 can read any file accessible to the server process, including credentials, private keys, and environment variables.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "praisonai"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.6.59"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-p4pj-vh7h-6cqh"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/MervinPraison/PraisonAI"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-18T13:56:04Z",
"nvd_published_at" : null
}
}