CVE-2026-40112 | MervinPraison PraisonAI up to 4.5.127 Flask API Endpoint src/praisonai/api.py _sanitize_html cross site scripting (GHSA-cfg2-mxfj-j6pw)
VulDBArchived Apr 10, 2026✓ Full text saved
A vulnerability categorized as problematic has been discovered in MervinPraison PraisonAI up to 4.5.127 . Affected is the function _sanitize_html of the file src/praisonai/api.py of the component Flask API Endpoint . The manipulation results in cross site scripting. This vulnerability is cataloged as CVE-2026-40112 . The attack may be launched remotely. There is no exploit available. It is advisable to upgrade the affected component.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-356785 · CVE-2026-40112 · GHSA-CFG2-MXFJ-J6PW
MERVINPRAISON PRAISONAI UP TO 4.5.127 FLASK API ENDPOINT SRC/PRAISONAI/API.PY _SANITIZE_HTML CROSS SITE SCRIPTING
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
4.7 $0-$5k 1.21+
Summaryinfo
A vulnerability identified as problematic has been detected in MervinPraison PraisonAI up to 4.5.127. Affected by this vulnerability is the function _sanitize_html of the file src/praisonai/api.py of the component Flask API Endpoint. This manipulation causes cross site scripting. This vulnerability is registered as CVE-2026-40112. Remote exploitation of the attack is possible. No exploit is available. You should upgrade the affected component.
Detailsinfo
A vulnerability was found in MervinPraison PraisonAI up to 4.5.127. It has been declared as problematic. Affected by this vulnerability is the function _sanitize_html of the file src/praisonai/api.py of the component Flask API Endpoint. The manipulation with an unknown input leads to a cross site scripting vulnerability. The CWE definition for the vulnerability is CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. As an impact it is known to affect integrity. The summary by CVE is:
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.
The advisory is shared at github.com. This vulnerability is known as CVE-2026-40112 since 04/09/2026. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1059.007 for this issue.
Upgrading to version 4.5.128 eliminates this vulnerability.
Productinfo
Vendor
MervinPraison
Name
PraisonAI
Version
4.5.127
Website
Product: https://github.com/MervinPraison/PraisonAI/
CPE 2.3info
🔒
CPE 2.2info
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 4.8
VulDB Meta Temp Score: 4.7
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 5.4
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Cross site scripting
CWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: PraisonAI 4.5.128
Timelineinfo
04/09/2026 CVE reserved
04/10/2026 +1 days Advisory disclosed
04/10/2026 +0 days VulDB entry created
04/10/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: GHSA-cfg2-mxfj-j6pw
Status: Confirmed
CVE: CVE-2026-40112 (🔒)
GCVE (CVE): GCVE-0-2026-40112
GCVE (VulDB): GCVE-100-356785
Entryinfo
Created: 04/10/2026 06:58
Changes: 04/10/2026 06:58 (67)
Complete: 🔍
Cache ID: 99:DC8:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸