CVE Catalog

CVE-2025-53354

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.20%

9th percentile - higher than 9% of all known CVEs

Summary

NiceGUI, 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(). Lack of HTML or JavaScript sanitization allows 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.

Risk Assessment

The risk applies to applications that use ui.html() with untrusted data, potentially leading to session hijacking, data theft, or other XSS attacks.

Recommendation

Update NiceGUI to version 3.0.0 or later, and avoid passing untrusted data to ui.html() without proper escaping.

Other vulnerabilities in NiceGUI

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS