Advisory record · GHSA-cfg2-mxfj-j6pw

PraisonAI Vulnerable to Stored XSS via Unsanitized Agent Output in HTML Rendering (nh3 Not a Required Dependency)

CVSS 5.4 MediumEPSS 0.0022 · 13th percentile

Published by the GitHub Advisory Database at 10 Apr 2026, 19:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
praisonaiPyPI<4.5.1284.5.128
Identifiers
GHSA-cfg2-mxfj-j6pw · CVE-2026-40112 · PYSEC-2026-2910
Weakness (CWE)
CWE-79
Published
10 Apr 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The praisonai PyPI package, versions before 4.5.128, renders agent output as HTML in its Flask API without working sanitization, because the nh3 sanitizer library is not a declared dependency and the default install falls back to a no-op. An attacker who can influence agent input, such as through poisoned RAG data, scraped web pages, or prompt injection, can get JavaScript into the output that runs in the browser of anyone viewing it. Upgrade to praisonai 4.5.128 or later. No workaround is listed.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0022, the 13th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:01 UTC First seen by agentprime
  2. 31 Oct 2026, 15:01 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.