Read the docs
TI-2025-33319 Aliases CVE-2025-53354GHSA-8c95-hpq2-w46f

NiceGUI is vulnerable to Reflected XSS attack

Priority MEDIUM 60CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00204 10th percentileScored 2026-11-07
Fix Fixed nicegui (zauberzeug): 3.0.0nicegui (PyPI): 3.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
zauberzeugniceguibefore 3.0.03.0.0Patch availableCNA
—nicegui (PyPI)before 3.0.03.0.0Patch availableGHSA-8c95-hpq2-w46f
  • nicegui Vendorzauberzeug Affected before 3.0.0 Fixed in 3.0.0 Patch available CNA
  • nicegui (PyPI) Vendor— Affected before 3.0.0 Fixed in 3.0.0 Patch available GHSA-8c95-hpq2-w46f

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*——zauberzeug
  • cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:* Versions — — ·zauberzeug

Remediation

  • Fix · CNA nicegui (zauberzeug) Fixed in 3.0.0
  • Fix · GHSA-8c95-hpq2-w46f nicegui (PyPI) Fixed in 3.0.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-53354
  2. 2026-10-03 Alias added: GHSA-8c95-hpq2-w46f

References

  • TI-2024-21104 Local File Inclusion in NiceGUI leaflet component CVSS 3.1HIGH 8.2
  • TI-2025-41029 NiceGUI Path Traversal Vulnerability in app.add_media_files() Allows Arbitrary File Reading CVSS 3.1HIGH 7.5
  • TI-2025-15578 NiceGUI On Air authentication issue CVSS 3.1HIGH 7.5
  • TI-2026-17574 Zero-click XSS in all NiceGUI apps which uses `ui.sub_pages` CVSS 3.1HIGH 7.2
  • TI-2026-17575 NiceGUI has Redis connection leak via tab storage causes service degradation CVSS 3.1MEDIUM 5.3
  • TI-2026-17573 NiceGUI apps are vulnerable to XSS which uses `ui.sub_pages` and render arbitrary user-provided links CVSS 3.1MEDIUM 6.1
See all 16 →

Sources