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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21873.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.22.0"
},
{
"fixed": "3.5.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"original_tag": "v3.5.0",
"range": [
{
"fixed": "ae20f775a683fdf8643cb8cbb35d14279b866af6"
}
],
"source": "REFERENCES_TAG"
},
{
"cpe": "cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.22.0"
},
{
"fixed": "3.5.0"
}
],
"source": "CPE_RANGE"
}
]
}