CVE-2025-68428 (CNNVD-202601-817)

CRITICAL
中文标题:
jsPDF 安全漏洞
英文标题:
jsPDF has Local File Inclusion/Path Traversal vulnerability
CVSS分数: 9.2
发布时间: 2026-01-05 21:43:55
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.40
数据版本: v4
漏洞描述
中文描述:

jsPDF是Parallax开源的一款基于JavaScript的PDF文档生成库。 jsPDF 4.0.0之前版本存在安全漏洞,该漏洞源于loadFile等方法允许用户控制路径,可能导致本地文件包含或路径遍历攻击。

英文描述:

jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.0.0, user control of the first argument of the loadFile method in the node.js build allows local file inclusion/path traversal. If given the possibility to pass unsanitized paths to the loadFile method, a user can retrieve file contents of arbitrary files in the local file system the node process is running in. The file contents are included verbatim in the generated PDFs. Other affected methods are `addImage`, `html`, and `addFont`. Only the node.js builds of the library are affected, namely the `dist/jspdf.node.js` and `dist/jspdf.node.min.js` files. The vulnerability has been fixed in jsPDF@4.0.0. This version restricts file system access per default. This semver-major update does not introduce other breaking changes. Some workarounds areavailable. With recent node versions, jsPDF recommends using the `--permission` flag in production. The feature was introduced experimentally in v20.0.0 and is stable since v22.13.0/v23.5.0/v24.0.0. For older node versions, sanitize user-provided paths before passing them to jsPDF.

CWE类型:
CWE-73 CWE-22 CWE-35
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
parallax jsPDF < 4.0.0 - - cpe:2.3:a:parallax:jspdf:<_4.0.0:*:*:*:*:*:*:*
parall jspdf * - - cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2 x_refsource_CONFIRM
cve.org
访问
https://github.com/parallax/jsPDF/commit/a688c8f479929b24a6543b1fa2d6364abb03066d x_refsource_MISC
cve.org
访问
https://github.com/parallax/jsPDF/releases/tag/v4.0.0 x_refsource_MISC
cve.org
访问
CVSS评分详情
4.0 (cna)
CRITICAL
9.2
CVSS向量: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
机密性
HIGH
完整性
NONE
可用性
NONE
后续系统影响 (Subsequent):
机密性
HIGH
完整性
NONE
可用性
NONE
时间信息
发布时间:
2026-01-05 21:43:55
修改时间:
2026-01-06 17:38:46
创建时间:
2026-01-12 02:12:30
更新时间:
2026-01-19 09:29:44
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-68428 2026-01-07 02:47:00 2026-01-12 02:12:30
NVD nvd_CVE-2025-68428 2026-01-09 03:00:07 2026-01-12 02:28:13
CNNVD cnnvd_CNNVD-202601-817 2026-01-11 06:15:07 2026-01-12 02:38:16
版本与语言
当前版本: v4
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v4 NVD
2026-01-17 06:00:15
affected_products_count: 1 → 2
查看详细变更
  • affected_products_count: 1 -> 2
v3 CNNVD
2026-01-12 02:38:16
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202601-817; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202601-817
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2026-01-12 02:28:13
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']