Medium severity6.1OSV Advisory· Published Oct 3, 2025· Updated Apr 15, 2026
CVE-2025-53354
CVE-2025-53354
Description
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.
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.0.0 | 3.0.0 |
Affected products
2- Range: v0.1.2, v0.2.0, v0.2.1, …
Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.