CVE-2025-53354
NiceGUI is a Python-based UI framework. Versions 2.24.2 and below …
NiceGUI is a Python-based UI framework. Versions 2.24.2 and below are at risk for Cross-Site Scripting (XSS) when developers render unescaped user input into the DOM using ui.html(). NiceGUI did not enforce HTML or JavaScript sanitization, so applications that directly combine components like ui.input() with ui.html() or ui.chat_message with HTML content without escaping may allow attackers to execute arbitrary JavaScript in the user’s browser. Applications that do not pass untrusted input into ui.html() are not affected. This issue is fixed in version 3.0.0.
What to do now
- Check your exposureFind out whether the affected software 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-8c95-hpq2-w46f
- github.com/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e60775
- nvd.nist.gov/vuln/detail/CVE-2025-53354
- github.com/advisories/GHSA-8c95-hpq2-w46f
- nvd.nist.gov/vuln/detail/CVE-2025-53354
- cve.org/CVERecord?id=CVE-2025-53354
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.