CVE-2026-21873: NiceGUI apps which use `ui.sub_pages` vulnerable to zero-click XSS
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.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-21873 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →