CVE-2026-21871 (CNNVD-202601-1484)

MEDIUM
中文标题:
NiceGUI 跨站脚本漏洞
英文标题:
NiceGUI is vulnerable to XSS via Unescaped URL in ui.navigate.history.push() / replace()
CVSS分数: 6.1
发布时间: 2026-01-08 09:49:55
漏洞类型: 跨站脚本
状态: PUBLISHED
数据质量分数: 0.40
数据版本: v4
漏洞描述
中文描述:

NiceGUI是NiceGUI开源的一个易于使用、基于 Python 的 UI 框架。 NiceGUI 2.13.0版本至3.4.1版本存在跨站脚本漏洞,该漏洞源于ui.navigate.history.push或replace函数存在跨站脚本风险。

英文描述:

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 JavaScript in the victim’s browser. Applications that do not pass untrusted input into ui.navigate.history.push/replace are not affected. This issue has been patched in version 3.5.0.

CWE类型:
CWE-79
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
zauberzeug nicegui >= 2.13.0, < 3.5.0 - - cpe:2.3:a:zauberzeug:nicegui:>=_2.13.0,_<_3.5.0:*:*:*:*:*:*:*
zauberzeug nicegui * - - cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/zauberzeug/nicegui/security/advisories/GHSA-7grm-h62g-5m97 x_refsource_CONFIRM
cve.org
访问
https://github.com/zauberzeug/nicegui/releases/tag/v3.5.0 x_refsource_MISC
cve.org
访问
CVSS评分详情
3.1 (cna)
MEDIUM
6.1
CVSS向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
机密性
LOW
完整性
LOW
可用性
NONE
时间信息
发布时间:
2026-01-08 09:49:55
修改时间:
2026-01-08 15:15:16
创建时间:
2026-01-12 02:12:37
更新时间:
2026-01-16 02:48:21
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2026-21871 2026-01-09 02:02:08 2026-01-12 02:12:37
NVD nvd_CVE-2026-21871 2026-01-09 03:00:10 2026-01-12 02:28:17
CNNVD cnnvd_CNNVD-202601-1484 2026-01-11 06:15:11 2026-01-12 02:38:14
版本与语言
当前版本: v4
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v4 NVD
2026-01-16 02:48:09
affected_products_count: 1 → 2
查看详细变更
  • affected_products_count: 1 -> 2
v3 CNNVD
2026-01-12 02:38:14
vulnerability_type: 未提取 → 跨站脚本; cnnvd_id: 未提取 → CNNVD-202601-1484; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 跨站脚本
  • cnnvd_id: 未提取 -> CNNVD-202601-1484
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2026-01-12 02:28:17
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']