CVE-2026-21872

Source
https://cve.org/CVERecord?id=CVE-2026-21872
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21872.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-21872
Aliases
Published
2026-01-08T09:50:02.801Z
Modified
2026-03-01T02:55:57.760076Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
NiceGUI apps are vulnerable to XSS which uses `ui.sub_pages` and render arbitrary user-provided links
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21872.json"
}
References

Affected packages

Git / github.com/zauberzeug/nicegui

Affected ranges

Type
GIT
Repo
https://github.com/zauberzeug/nicegui
Events

Affected versions

v2.*
v2.22.0
v2.22.1
v2.22.2
v2.23.0
v2.23.1
v2.23.2
v2.23.3
v2.24.0
v2.24.1
v2.24.2
v3.*
v3.0.0
v3.0.0rc1
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.1.0
v3.2.0
v3.3.0
v3.3.1
v3.4.0
v3.4.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21872.json"