CVE-2026-40112
Last modified
CVE-2026-40112 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. PraisonAI is a multi-agent teams system. Prior to 4.5.128, the Flask API endpoint in src/praisonai/api.py renders agent output as HTML without effective sanitization. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
PraisonAI is a multi-agent teams system. Prior to 4.5.128, the Flask API endpoint in src/praisonai/api.py renders agent output as HTML without effective sanitization. The _sanitize_html function relies on the nh3 library, which is not listed as a required or optional dependency in pyproject.toml. When nh3 is absent (the default installation), the sanitizer is a no-op that returns HTML unchanged. An attacker who can influence agent input (via RAG data poisoning, web scraping results, or prompt injection) can inject arbitrary JavaScript that executes in the browser of anyone viewing the API output. This vulnerability is fixed in 4.5.128.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Praison | Praisonai | < 4.5.128 |
References
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-cfg2-mxfj-j6pwExploit, Vendor Advisory
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-cfg2-mxfj-j6pwExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40112?
How severe is CVE-2026-40112?
How do I fix CVE-2026-40112?
Are you affected by CVE-2026-40112?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
