CVE Explorer
CVE-2026-21871
NiceGUI is a Python-based UI framework. From versions 2.13.0 to 3.4.1, there is a XSS risk in NiceGUI when developers pass attacker-controlled strings into ui.navigate.history.push() or ui.navigate.history.replace(). These helpers are documented as History API wrappers for updating the browser URL without page reload. However, if the URL argument is embedded into generated JavaScript without proper escaping, a crafted payload can break out of the intended string context and execute arbitrary Jav
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"nicegui","vendor":"zauberzeug","versions":[{"status":"affected","version":">= 2.13.0, < 3.5.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:4059554a0a7268bbaee823bc7b5078bb2c76c77f1be412b8266d7514f0657f92 · sha256:2f0f2fa64e78390b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:4059554a0a7268bbaee823bc7b5078bb2c76c77f1be412b8266d7514f0657f92 · sha256:2f0f2fa64e78390b… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:4059554a0a7268bbaee823bc7b5078bb2c76c77f1be412b8266d7514f0657f92 · sha256:2f0f2fa64e78390b… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0","tags":["x_refsource_MISC"],"url":"https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4059554a0a7268bbaee823bc7b5078bb2c76c77f1be412b8266d7514f0657f92 · sha256:2f0f2fa64e78390b… · /containers/cna/references/1
{"name":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-7grm-h62g-5m97","tags":["x_refsource_CONFIRM"],"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-7grm-h62g-5m97"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4059554a0a7268bbaee823bc7b5078bb2c76c77f1be412b8266d7514f0657f92 · sha256:2f0f2fa64e78390b… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.