CVE-2025-53354
Last modified
CVE-2025-53354 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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(). EPSS estimates a 0.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-53354?
How severe is CVE-2025-53354?
How do I fix CVE-2025-53354?
Are you affected by CVE-2025-53354?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
