CVE-2026-21871Zauberzeug 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
- Jan 8, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · 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. From versions 2.13.0 to 3.4.1, there is a XSS risk in NiceGUI when developers pass attacker-controlled strings into ui.navigate.history.push() or ui.navigate.history.replace(). These helpers are documented as History API wrappers for updating the browser URL without page reload. However, if the URL argument is embedded into generated JavaScript without proper escaping, a crafted payload can break out of the intended string context and execute arbitrary JavaScript in the victim’s browser. Applications that do not pass untrusted input into ui.navigate.history.push/replace are not affected. This issue has been patched in version 3.5.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 |
≥ 2.13.0 < 3.5.0 |
3.5.0 |
pip install "nicegui>=3.5.0" |
| PyPI | nicegui |
≥ 2.13.0 < 3.5.0 |
3.5.0 |
pip install "nicegui>=3.5.0" |
Per OSV / GitHub Advisories (GHSA-7grm-h62g-5m97, PYSEC-2026-1698). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| zauberzeug | nicegui | ≥ 2.13.0 < 3.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- github.com Exploit Vendor Advisory