Skip to main content
← All vulnerabilities
CVE-2025-53354PYSEC-2026-1699GHSA-8C95-HPQ2-W46F

NiceGUI is vulnerable to Reflected XSS attack

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • zauberzeug nicegui

    fixed in 3.0.0

  • niceguiPyPI

    fixed in 3.0.0

References 2

GitHub · zauberzeug/nicegui