CVE-2026-21873: NiceGUI - Stored XSS
- Cve: CVE-2026-21873
- Name: NiceGUI - Stored XSS
- 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.
- Impact: Attackers can execute scripts in victim's browser via manipulated URL fragments, potentially leading to session hijacking or data theft.
- Remediation: Upgrade to version 3.5.0 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victim must load a malicious iframe controlled by attacker
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.0026
- Epss percentile: 0.17856
- Assignee: [email protected]
- Published at: 2026-01-08T10:15:55Z
- Age in days: 320
- Modified at: 2026-06-17T10:19:04Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-21873
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mhpg-c27v-6mxr | nvd | 2026-01-08 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mhpg-c27v-6mxr | nvd | Exploit, Vendor Advisory |
| https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| zauberzeug:nicegui | >= 2.22.0, < 3.5.0 | no | nvd | /v1/products/zauberzeug/nicegui |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| zauberzeug/nicegui | fix, package, releases, security_advisory | yes | /v1/repositories/zauberzeug/nicegui |
Index
- Repositories: 1
- Checked, none or zero: repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-01-08
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts