CVE-2025-68428
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-01-05
- Last modified
- 2026-10-07
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
2.1 %
higher than 79 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Parall | Jspdf | < 4.0.0 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
-
CWE-35: Path Traversal: '.../...//'
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '.../...//' (doubled triple dot slash) sequences that can resolve to a location t…
-
CWE-73: External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1027: Obfuscated Files or Information
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
References
- https://github.com/parallax/jsPDF/commit/a688c8f479929b24a6543b1fa2d6364abb03066d
- https://github.com/parallax/jsPDF/releases/tag/v4.0.0
- https://github.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2
- https://access.redhat.com/errata/RHSA-2026:1517
- https://access.redhat.com/errata/RHSA-2026:2350
- https://access.redhat.com/errata/RHSA-2026:2568
- https://access.redhat.com/security/cve/CVE-2025-68428
- https://bugzilla.redhat.com/show_bug.cgi?id=2427236
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68428.json
Related at Berigo
Articles
-
Fake recruiters talked IT staff into installing a VPN client that ran hidden code
Same product
2026-08-12
CERT-UA describes how the threat cluster UAC-0145 approaches IT professionals on job sites and runs a full hiring process, complete with a Telegram c…
-
A fake job offer ended with a rootkit in the Windows kernel
Same product
2026-08-12
Check Point Research attributes a new wave of Operation Dream Job to Lazarus, where fake job offers in the defence and aviation industries ended in e…
-
Europe takes more control of the vulnerability register, and NATO IT agency joins
Same product
2026-08-07
ENISA announced on 6 August 2026 that the NATO Communications and Information Agency and the company AISLE have become CVE Numbering Authorities unde…
-
ErrTraffic: ClickFix framework sold as a service
Same product
2026-06-16
Sekoia describes a JavaScript framework delivering ClickFix lures from compromised websites, steered via blockchain smart contracts.
Services
-
AI Governance
Berigo helps organisations adopt artificial intelligence responsibly and with clear governance: from EU AI Act readiness to management systems aligne…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.