CVE-2025-66469
Zauberzeug Nicegui vulnerability
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 <style> or <script> tags by injecting closing tags (e.g., </style> or </script>), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.0.
Affected products
Nicegui. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Zauberzeug Nicegui runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/zauberzeug/nicegui/security/advisories/GHSA-72qc-wxch-74mg
- github.com/zauberzeug/nicegui/commit/a8fd25b7d5e23afb1952d0f60a1940e18b5f1ca8
- nvd.nist.gov/vuln/detail/CVE-2025-66469
- github.com/advisories/GHSA-72qc-wxch-74mg
- nvd.nist.gov/vuln/detail/CVE-2025-66469
- cve.org/CVERecord?id=CVE-2025-66469
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.