Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-8c95-hpq2-w46f
FAQ
What is CVE-2025-53354?
CVE-2025-53354 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 e...
How severe is CVE-2025-53354?
CVE-2025-53354 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-53354?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.