CVE-2026-40112

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductPraisonai
PublishedApr 9, 2026
First seenApr 9, 2026

How to fix

Update
  • praison praisonai4.5.128 or later
  • praisonai4.5.128 or later

Affected products

ProductAffected versionsFixed in
praison praisonaiv < 4.5.1284.5.128
praisonaiPyPIv < 4.5.1284.5.128

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.