CVE-2025-68428 (CNNVD-202601-817)
中文标题:
jsPDF 安全漏洞
英文标题:
jsPDF has Local File Inclusion/Path Traversal vulnerability
漏洞描述
中文描述:
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类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | 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:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
CVSS评分详情
4.0 (cna)
CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
时间信息
利用信息
数据源详情
| 数据源 | 记录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 |
版本与语言
安全公告
变更历史
查看详细变更
- affected_products_count: 1 -> 2
查看详细变更
- vulnerability_type: 未提取 -> 其他
- cnnvd_id: 未提取 -> CNNVD-202601-817
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- data_sources: ['cve'] -> ['cve', 'nvd']