CVE Catalog

CVE-2026-40112

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.22%

12th percentile - higher than 12% of all known CVEs

Summary

In PraisonAI 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 dependency in pyproject.toml; when nh3 is absent (default installation), the sanitizer is a no-op that returns HTML unchanged.

Risk Assessment

An attacker who can influence agent input (e.g., via RAG data poisoning, scraping results, or prompt injection) can inject arbitrary JavaScript that executes in the browser of anyone viewing the API output. This may lead to session theft or other attacks.

Recommendation

Update PraisonAI to version 4.5.128. Ensure the nh3 library is installed as a dependency so that HTML sanitization works correctly.

Other vulnerabilities in PraisonAI

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS