CVE-2025-68428
Last modified
CVE-2025-68428 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 2.06% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Parall | Jspdf | < 4.0.0 |
References
- https://github.com/parallax/jsPDF/releases/tag/v4.0.0Product, Release Notes
- https://github.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-68428?
How severe is CVE-2025-68428?
How do I fix CVE-2025-68428?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-68406A path traversal vulnerability has been reported to affect Q…6.5
- CVE-2025-6841A vulnerability has been found in code-projects Product Inve…7.2
- CVE-2025-6842A vulnerability was found in code-projects Product Inventory…7.2
- CVE-2025-68420Comarch ERP Optima client connects to a database using a hig…7.5
- CVE-2025-68421Comarch ERP Optima client makes use of a hard-coded password…8.7
- CVE-2025-68422Improper Authorization (CWE-285) in Kibana can lead to privi…4.3
- CVE-2025-68429Storybook is a frontend workshop for building user interface…5.3
- CVE-2025-6843A vulnerability was found in code-projects Simple Photo Gall…9.8
- CVE-2025-68430CVAT is an open source interactive video and image annotatio…4.3
- CVE-2025-68431libheif is an HEIF and AVIF file format decoder and encoder.…7.1
- CVE-2025-68432Zed, a code editor, has an aribtrary code execution vulnerab…7.3
- CVE-2025-68433Zed, a code editor, has an aribtrary code execution vulnerab…7.3
Are you affected by CVE-2025-68428?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
