GHSA-f8cm-6447-x5h2 · Severity: critical · Ecosystem: npm — jsPDF has Local File Inclusion/Path Traversal vulnerability
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 [email protected]. 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.
Conclusion & alert: CVE-2025-68428 is rated Moderate Risk (61.2/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 1.28%). Core evidence: EPSS rose +1.26% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.02% | 1.28% | +1.26% |
| 2 | 2026-01-18 | 0.06% | 0.02% | -0.04% |
| 3 | 2026-01-06 | — | 0.06% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.2 | 4.0 | CRITICAL |
|
— | — | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-f8cm-6447-x5h2 · Severity: critical · Ecosystem: npm — jsPDF has Local File Inclusion/Path Traversal vulnerability
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2025-68428 |
| URL | Tags |
|---|---|
| https://github.com/parallax/jsPDF/commit/a688c8f479929b24a6543b1fa2d6364abb03066d | Patch |
| https://github.com/parallax/jsPDF/releases/tag/v4.0.0 | Product Release Notes |
| https://github.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2 | Third Party Advisory |