Moderate severityNVD Advisory· Published Dec 8, 2025· Updated Dec 9, 2025
NiceGUI Reflected XSS in ui.add_css, ui.add_scss, and ui.add_sass via Style Injection
CVE-2025-66469
Description
NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are vulnerable to Reflected XSS through its ui.add_css, ui.add_scss, and ui.add_sass functions. The functions lack proper sanitization or encoding for the JavaScript context they generate. An attacker can break out of the intended or ), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.0.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
niceguiPyPI | < 3.4.0 | 3.4.0 |
Affected products
2- Range: < 3.4.0
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-72qc-wxch-74mgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-66469ghsaADVISORY
- github.com/zauberzeug/nicegui/commit/a8fd25b7d5e23afb1952d0f60a1940e18b5f1ca8ghsax_refsource_MISCWEB
- github.com/zauberzeug/nicegui/security/advisories/GHSA-72qc-wxch-74mgghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.