{"id":"CVE-2026-21873","published":"2026-01-08T09:50:23Z","modified":"2026-01-08T15:11:24Z","title":"Zero-click XSS in all NiceGUI apps which uses `ui.sub_pages`","vendor":"zauberzeug","product":"nicegui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0026,"percentile":0.18083,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mhpg-c27v-6mxr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":3.62},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"zauberzeug","affectedVersions":[{"vendor":"zauberzeug","product":"nicegui","versions":[">= 2.22.0, < 3.5.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-08T15:11:07.042037Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nicegui","vulnerableRanges":[">=2.22.0, <3.5.0"],"patched":["3.5.0"],"from":["GHSA-mhpg-c27v-6mxr","PYSEC-2026-1702"],"provenance":"source"}],"summary":{"text":"The NiceGUI Python UI framework, specifically the pushstate event listener used by its ui.sub_pages component, contains an unsafe implementation that enables cross-site scripting. An attacker can exploit it without authentication or user interaction, by using a cross-site iframe to manipulate the URL fragment identifier.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:49Z"},"euvd":{"id":"EUVD-2026-1475","exploited":false,"provenance":"source"}}