← console
voxell vciy

CVE-2026-40112: PraisonAI has Stored XSS via Unsanitized Agent Output in HTML Rendering (nh3 Not a Required Dependency)

ROUTINE

Telemetry drift only. No threshold crossed and no authority ruling changed.

CVE record, CISA KEV and EPSS as of 2026-12-06.

CVEs like this one computed, by meaning

What to do now held facts and links

  1. Upgrade to praisonai 4.5.128 or later upper bounds of the CVE record's affected ranges
  2. Later advisories still cover the fixes above and name higher ones: praisonai 4.5.133 (CVE-2026-40315), 4.5.139 (CVE-2026-40287), 4.5.139 (CVE-2026-40288), 4.5.139 (CVE-2026-40289), 4.5.149 (CVE-2026-41496), 4.5.149 (CVE-2026-41497), 4.6.34 (CVE-2026-44336), 4.6.34 (CVE-2026-44337), 4.6.34 (CVE-2026-44338), 4.6.37 (CVE-2026-44339), 4.6.37 (CVE-2026-44340), 4.6.40 (CVE-2026-47390), 4.6.40 (CVE-2026-47391), 4.6.40 (CVE-2026-47392), 4.6.40 (CVE-2026-47393), 4.6.40 (CVE-2026-47394), 4.6.40 (CVE-2026-47395), 4.6.40 (CVE-2026-47396), 4.6.40 (CVE-2026-47397), 4.6.40 (CVE-2026-47398), 4.6.40 (CVE-2026-64824), 4.6.58 (CVE-2026-55522), 4.6.58 (CVE-2026-55529), 4.6.58 (CVE-2026-55531), 4.6.58 (CVE-2026-55532), 4.6.58 (CVE-2026-55533), 4.6.58 (CVE-2026-55535), 4.6.58 (CVE-2026-55536), 4.6.58 (CVE-2026-55537), 4.6.58 (CVE-2026-55538), 4.6.58 (CVE-2026-55539), 4.6.58 (CVE-2026-55540), 4.6.58 (CVE-2026-55541), 4.6.59 (CVE-2026-56832), 4.6.59 (CVE-2026-56833), 4.6.59 (CVE-2026-56834), 4.6.59 (CVE-2026-56835), 4.6.59 (CVE-2026-56836), 4.6.59 (CVE-2026-56838), 4.6.59 (CVE-2026-56839), 4.6.59 (CVE-2026-56840), 4.6.59 (CVE-2026-57112), 4.6.59 (CVE-2026-57113), 4.6.59 (CVE-2026-57114), 4.6.59 (CVE-2026-57116), 4.6.59 (CVE-2026-57119), 4.6.59 (CVE-2026-57122), 4.6.59 (CVE-2026-57124), 4.6.59 (CVE-2026-57125), 4.6.59 (CVE-2026-57127), 4.6.59 (CVE-2026-57131), 4.6.61 (CVE-2026-57132), 4.6.61 (CVE-2026-57142), 4.6.61 (CVE-2026-57144), 4.6.61 (CVE-2026-57145), 4.6.61 (CVE-2026-57146) OSV advisories
  3. Record your decision, dated and frozen with today's evidence: patch by a date · mitigated by a compensating control · deferred · accepted the risk · not affected
  4. Check your version against the ranges this record publishes.

What it is stated by the CNA

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.

weakness
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
affected
MervinPraison PraisonAI
published ranges
praisonai < 4.5.128
first unaffected version, by branch
praisonai 4.5.128
fixed by package (from OSV advisories)
praisonai (PyPI): 4.5.128 GHSA-cfg2-mxfj-j6pw PYSEC-2026-2910
later fixes (from OSV advisories)
praisonai 4.5.128 is inside a range CVE-2026-40287 (GHSA-g985-wjh9-qxxc) lists as affected. That advisory is fixed in 4.5.139.praisonai 4.5.128 is inside a range CVE-2026-40288 (GHSA-vc46-vw85-3wvm) lists as affected. That advisory is fixed in 4.5.139.praisonai 4.5.128 is inside a range CVE-2026-40289 (GHSA-8x8f-54wf-vv92) lists as affected. That advisory is fixed in 4.5.139.praisonai 4.5.128 is inside a range CVE-2026-40315 (GHSA-x783-xp3g-mqhp) lists as affected. That advisory is fixed in 4.5.133.praisonai 4.5.128 is inside a range CVE-2026-41496 (GHSA-rg3h-x3jw-7jm5) lists as affected. That advisory is fixed in 4.5.149.praisonai 4.5.128 is inside a range CVE-2026-41497 (GHSA-9qhq-v63v-fv3j) lists as affected. That advisory is fixed in 4.5.149.
severity
5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
assigned by
GitHub_M
published
2026-04-09

check us github.com

Exploit code held, dated

exploit code
None held in the PoC-in-GitHub feed. A public repository changes this brief.

What moved held, dated

dateEPSSevent
10 Apr 20260.00029
15 Apr 20260.00031
18 Apr 20260.0003
11 May 20260.00033
21 May 20260.00038
15 Jun 20260.00216scoring model v2026.06.15
28 Sep 20260.00261
25 Oct 20260.00216
6 Nov 20260.00224
28 Nov 20260.00277
1 Dec 20260.00229

11 observations held. A step marked with a scoring model moved because the measurement was replaced, not because the vulnerability changed.

Outside the record model-written, researched, cited

This section reads the record's references and adds cited findings from outside it. It needs an account. Everything above is held facts and is complete without it.

Get started with CVE-2026-40112 (20s setup) Triage in Vesper (no login) · Sign in to add the researched section

What would change this brief held, dated

CISA KEV
Not listed in the catalogue we hold. A listing changes this brief.
exploit probability
0.00 on 2026-12-01 (FIRST's EPSS, a probability and not evidence of exploitation). Next band line: 10% (0.10). Crossing a line changes this brief.
fix
Held: praisonai 4.5.128. A newer fix from the CNA or OSV changes this brief.

Watch this CVE Guided 20s setup · What counts as a move

How to check this

Every value above is held with two dates: when it was true upstream (as_of) and when we recorded it (tx_from). Re-derive the exploit probability as it stood on any date:

SELECT value, source, source_version, as_of, tx_from
FROM volatile_valid_as_of('CVE-2026-40112', '2026-12-06T23:59:59.999999Z', now());