{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-21873","id":"CVE-2026-21873","title":"Zero-click XSS in all NiceGUI apps which uses `ui.sub_pages`","description":"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.","descriptionLong":"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.","published":"2026-01-08T09:50:23.361Z","updated":"2026-10-28T02:30:31.692604456Z","reserved":"2026-01-05T16:44:16.369Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["zauberzeug nicegui"],"affectedProducts":[{"vendor":"zauberzeug","product":"nicegui","defaultStatus":null,"versions":[{"version":">= 2.22.0, < 3.5.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"nicegui","purl":"pkg:pypi/nicegui","ranges":[">=2.22.0 <3.5.0"],"fixed":["3.5.0"],"advisory":"GHSA-mhpg-c27v-6mxr"}],"cwes":["CWE-79"],"aliases":["GHSA-mhpg-c27v-6mxr","PYSEC-2026-1702"],"references":[{"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mhpg-c27v-6mxr","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21873.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21873","tags":["advisory"]},{"url":"https://github.com/zauberzeug/nicegui","tags":["package"]},{"url":"https://pypi.org/project/nicegui","tags":["package"]},{"url":"https://github.com/advisories/GHSA-mhpg-c27v-6mxr","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.0026,"epssPercentile":0.17961,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-21873","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21873","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-21873","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mhpg-c27v-6mxr","ok":true,"note":"GHSA-mhpg-c27v-6mxr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-21873","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}