Skip to main content
← All vulnerabilities
CVE-2026-21873PYSEC-2026-1702GHSA-MHPG-C27V-6MXR

Zero-click XSS in all NiceGUI apps which uses `ui.sub_pages`

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

Summary

NiceGUI is a Python-based UI framework. From versions 2.22.0 to 3.4.1, an unsafe implementation in the pushstate event listener used by ui.sub_pages allows an attacker to manipulate the fragment identifier of the URL, which they can do despite being cross-site, using an iframe. This issue has been patched in version 3.5.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • zauberzeug nicegui

    From 2.22.0 · fixed in 3.5.0

  • niceguiPyPI

    From 2.22.0 · fixed in 3.5.0

References 2

GitHub · zauberzeug/nicegui