SecurityContext

CVE-2026-40112: PraisonAI - Stored XSS

  • Cve: CVE-2026-40112
  • Name: PraisonAI - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary JavaScript in users' browsers, leading to session hijacking or other client-side attacks.
  • Remediation: Update to version 4.5.128 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00224
  • Epss percentile: 0.13056
  • Assignee: [email protected]
  • Published at: 2026-04-09T22:16:34Z
  • Age in days: 229
  • Modified at: 2026-10-26T21:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40112
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-cfg2-mxfj-j6pwnvd2026-04-09

References

UrlSourceTags
https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-cfg2-mxfj-j6pwnvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
praison:praisonai< 4.5.128nonvd/v1/products/praison/praisonai

Projects

RepositoryLink kindsIndexedUrl
mervinpraison/praisonaipackage, releases, security_advisoryyes/v1/repositories/mervinpraison/praisonai

Index

  • Repositories: 1
  • Repositories high signal: 1
  • Checked, none or zero: packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-04-09
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts