CVE-2026-25516: zauberzeug nicegui · Cross-site Scripting
Affects zauberzeug niceguiSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium : upgrade to 3.7.0 when convenient.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.7.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade zauberzeug nicegui to 3.7.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| zauberzeugnicegui | Affected
| Fixed in
|
PyPIniceguipkg:pypi/niceguiOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade any NiceGUI deployments to version 3.7.0 or later, where this vulnerability is fixed. If upgrading is not immediately feasible, implement strict input validation and sanitization on all user-generated markdown content before rendering it via ui.markdown(). Consider disabling or restricting the use of raw HTML in markdown inputs or replacing ui.markdown() with components that support sanitization parameters. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of potential XSS attacks. Conduct thorough code reviews and penetration testing focusing on user input handling in NiceGUI-based applications. Educate developers about the risks of rendering unsanitized user content and enforce secure coding practices. Monitor web application logs and user reports for signs of suspicious activity or attempted exploitation. Finally, maintain an updated inventory of applications using NiceGUI to ensure all affected instances are identified and remediated.
Description
NiceGUI is a Python-based UI framework. The ui.markdown() component uses the markdown2 library to convert markdown content to HTML, which is then rendered via innerHTML. By default, markdown2 allows raw HTML to pass through unchanged. This means that if an application renders user-controlled content through ui.markdown(), an attacker can inject malicious HTML containing JavaScript event handlers. Unlike other NiceGUI components that render HTML (ui.html(), ui.chat_message(), ui.interactive_image()), the ui.markdown() component does not provide or require a sanitize parameter, leaving applications vulnerable to XSS attacks. This vulnerability is fixed in 3.7.0.