# CVE-2026-56839: PraisonAI Code agent tools fail open without a workspace boundary

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-18T13:59:26.000Z
- Modified: 2026-09-16T13:42:48.020Z
- Also known as: GHSA-gcq3-mfvh-3x25, PYSEC-2026-3512
- Weaknesses: CWE-22, CWE-200, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

PraisonAI is a multi-agent teams system. Prior to 4.6.59, the CODE_TOOLS wrappers keep _workspace_root as None and pass workspace=None to read_file, search_replace, and apply_diff helpers that enforce path containment only for a truthy workspace. An application that exposes code_read_file, code_search_replace, or code_apply_diff before set_workspace can therefore let prompt-influenced calls read and modify files outside the intended project directory, while explicitly configured workspaces remain effective. This vulnerability is fixed in 4.6.59.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 4.6.59
- praisonai (PyPI): before 4.6.59

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-gcq3-mfvh-3x25> (exploit, web)
- <https://github.com/MervinPraison/PraisonAI/commit/b4270173d4123fb1ee8910588f0896668ee21b59>
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.59>
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonai> (package)
- <https://github.com/advisories/GHSA-gcq3-mfvh-3x25> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56839> (advisory)

## Sources

- CVE List: [CVE-2026-56839](https://www.cve.org/CVERecord?id=CVE-2026-56839), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-gcq3-mfvh-3x25](https://github.com/advisories/GHSA-gcq3-mfvh-3x25), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-56839](https://nvd.nist.gov/vuln/detail/CVE-2026-56839), Public domain, modified 2026-09-16
- PyPA Advisory Database: [PYSEC-2026-3512](https://osv.dev/vulnerability/PYSEC-2026-3512), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-56839 · Whole record: https://cve.day/CVE-2026-56839.json · Rebuilt by cve.day 2026-11-25T22:59:38.295Z
