CVE-2025-53354 Details
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.
A Cross-Site Scripting (XSS) vulnerability exists in NiceGUI, a Python UI framework, in versions prior to 3.0.0. The issue arises when developers use 'ui.html()' or 'ui.chat_message()' with unescaped user input, as the framework does not automatically sanitize HTML or JavaScript. This oversight can lead to the execution of arbitrary JavaScript in the user's browser, potentially allowing for session hijacking or phishing attacks. The vulnerability is present when user input is directly rendered into the DOM without proper escaping.
Users can upgrade to NiceGUI version 3.0.0 or later, where this vulnerability has been fixed. For applications that require HTML rendering, it is recommended to use the 'sanitize' parameter with 'ui.html()' or 'ui.chat_message()' to remove any potentially harmful content before displaying it.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 3, 2025CISA-ADP
Assessed Oct 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e60775 | [email protected] | Source CodeVendor |
| https://github.com/zauberzeug/nicegui/security/advisories/GHSA-8c95-hpq2-w46f | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zauberzeug nicegui | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 3, 2025 | New CVE Received | [email protected] |
Volerion