CVE-2025-53354

MEDIUM CVSS 3.1: 6.1 EPSS 0.20%
Updated Oct 09, 2026
Python
Parameter Value
CVSS 6.1 (MEDIUM)
Fixed In 3.0.0
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Python
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1