CVE-2026-25516Zauberzeug Nicegui
Medium 6.1 No auth needed
Follow: this CVE · Zauberzeug · Zauberzeug Nicegui We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- —
- Auth required
- No
- Published
- Feb 6, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Nicegui.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | nicegui |
< 3.7.0 |
3.7.0 |
pip install "nicegui>=3.7.0" |
| PyPI | nicegui |
< 3.7.0 |
3.7.0 |
pip install "nicegui>=3.7.0" |
Per OSV / GitHub Advisories (GHSA-v82v-c5x8-w282, PYSEC-2026-2231). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| zauberzeug | nicegui | < 3.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Mitigation Vendor Advisory