{"id":"CVE-2026-21872","published":"2026-01-08T09:50:02Z","modified":"2026-01-08T15:13:11Z","title":"NiceGUI apps are vulnerable to XSS which uses `ui.sub_pages` and render arbitrary user-provided links","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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00271,"percentile":0.19759,"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-m7j5-rq9j-6jj9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":3.95},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"zauberzeug","affectedVersions":[{"vendor":"zauberzeug","product":"nicegui","versions":[">= 2.22.0, < 3.5.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-08T15:12:53.988468Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nicegui","vulnerableRanges":[">=2.22.0, <3.5.0"],"patched":["3.5.0"],"from":["GHSA-m7j5-rq9j-6jj9","PYSEC-2026-1701"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in NiceGUI, a Python-based UI framework, lives in the click event listener used by its ui.sub_pages component, which is unsafe when combined with attacker-controlled links rendered on the page. An unauthenticated remote attacker over the network can cause script execution in the user's browser, but only if the victim actively clicks the crafted link, and the issue affects NiceGUI versions from 2.22.0 through 3.4.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:47Z"},"euvd":{"id":"EUVD-2026-1477","exploited":false,"provenance":"source"}}