Cross-Site Scripting Vulnerability in NiceGUI Python Framework by Zauberzeug
CVE-2026-21872
6.1MEDIUM
What is CVE-2026-21872?
A cross-site scripting (XSS) vulnerability exists in the NiceGUI framework, affecting versions between 2.22.0 and 3.4.1. This issue arises from an unsafe click event handler linked to ui.sub_pages, which permits an attacker to render links controlled by them. When users click these links, malicious scripts can execute within the context of their browser sessions, posing a risk of unauthorized data exposure or session hijacking. Users are urged to upgrade to version 3.5.0 or later to mitigate this risk.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
nicegui >= 2.22.0, < 3.5.0
References
CVSS V3.1
Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed
Timeline
Vulnerability published
Vulnerability Reserved
