jsPDF has Local File Inclusion/Path Traversal vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-73 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| parallax | jsPDF | before 4.0.0 | 4.0.0 | Patch available | CNA |
| — | jspdf (npm) | before 4.0.0 | 4.0.0 | Patch available | GHSA-f8cm-6447-x5h2 |
- jsPDF Vendorparallax Affected before 4.0.0 Fixed in 4.0.0 Patch available CNA
- jspdf (npm) Vendor— Affected before 4.0.0 Fixed in 4.0.0 Patch available GHSA-f8cm-6447-x5h2
Remediation
- Fix · CNA jsPDF (parallax) Fixed in 4.0.0
- Fix · GHSA-f8cm-6447-x5h2 jspdf (npm) Fixed in 4.0.0 Advisory →
Red Hat 3 advisories
- RHSA-2026:2568 Released 2026-02-11 · Red Hat rating ImportantRHACS 4.9.3 security and bug fix update
- Red Hat Advanced Cluster Security 4.9 registry.redhat.io/advanced-cluster-security/rhacs-central-db-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-collector-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8 +6
- RHSA-2026:2350 Released 2026-02-09 · Red Hat rating ImportantRHACS 4.9.3 security and bug fix update
- Red Hat Advanced Cluster Security 4.9 registry.redhat.io/advanced-cluster-security/rhacs-central-db-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-collector-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8 +6
- RHSA-2026:1517 Released 2026-01-28 · Red Hat rating ImportantRHACS 4.8.8 security and bug fix update
- Red Hat Advanced Cluster Security 4.8 registry.redhat.io/advanced-cluster-security/rhacs-central-db-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-collector-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8 +8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Security 4.8 | Fixed | RHSA-2026:1517 |
| Red Hat Advanced Cluster Security 4.9 | Fixed | RHSA-2026:2350, RHSA-2026:2568 |
Not affected: 3 products
- Red Hat Advanced Cluster Security 4
- Red Hat Advanced Cluster Security 4.8
- Red Hat Advanced Cluster Security 4.9
Timeline
- 2026-10-02 Threatist record created from CVE-2025-68428
- 2026-10-03 Alias added: GHSA-f8cm-6447-x5h2
References
Advisory 2
More parallax Jspdf vulnerabilities
- TI-2026-20644 jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions CVSS 4.0HIGH 8.7
- TI-2025-35693 jsPDF Parsing of Corrupt PNGs Leads to Potential Denial of Service (DoS) CVSS 4.0HIGH 8.7
- TI-2025-21292 jsPDF Bypass Regular Expression Denial of Service (ReDoS) CVSS 4.0HIGH 8.7
- TI-2026-24484 jsPDF has HTML Injection in New Window paths CVSS 3.1CRITICAL 9.6
- TI-2026-20823 jsPDF has PDF Object Injection via Unsanitized Input in addJS Method CVSS 3.1HIGH 8.8
- TI-2026-19451 jsPDF Affected by Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder CVSS 4.0HIGH 8.7
Sources
- CVE-2025-68428 · CVE Program
- CVE-2025-68428 · NVD
- FIRST EPSS
- GHSA-f8cm-6447-x5h2 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-68428 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences