# CVE-2026-47397: PraisonAI has an Arbitrary File Write in Python API

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA: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.46%, higher than 41% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-29T22:31:49.000Z
- Modified: 2026-10-24T19:10:00.127Z
- Also known as: GHSA-hvhp-v2gc-268q, PYSEC-2026-2916
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

PraisonAI is a multi-agent teams system. Prior to version 4.6.40, hidden metadata in a webpage causes PraisonAI agents to write attacker-controlled content to arbitrary paths. `write_file` skips path validation when `workspace=None` (always `None` in production). Version 4.6.40 fixes the issue.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-hvhp-v2gc-268q> (exploit, web)
- <https://github.com/MervinPraison/PraisonAI/pull/1684>
- <https://github.com/MervinPraison/PraisonAI/commit/b0d8f777528f3253a0cfb0a3ef65455da6ae32f6>
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonai> (package)
- <https://github.com/advisories/GHSA-hvhp-v2gc-268q> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47397> (advisory)

## Sources

- CVE List: [CVE-2026-47397](https://www.cve.org/CVERecord?id=CVE-2026-47397), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-hvhp-v2gc-268q](https://github.com/advisories/GHSA-hvhp-v2gc-268q), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-47397](https://nvd.nist.gov/vuln/detail/CVE-2026-47397), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-2916](https://osv.dev/vulnerability/PYSEC-2026-2916), CC-BY-4.0, modified 2026-07-13

---

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