Skip to main content
← All vulnerabilities
CVE-2026-21872GHSA-M7J5-RQ9J-6JJ9PYSEC-2026-1701

NiceGUI apps are vulnerable to XSS which uses `ui.sub_pages` and render arbitrary user-provided links

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: no
  • 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 click event listener used by ui.sub_pages, combined with attacker-controlled link rendering on the page, causes XSS when the user actively clicks on the link. This issue has been patched in version 3.5.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · 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