CVE-2025-68428
published critical CVSS 4.0 · 9.2jsPDF has Local File Inclusion/Path Traversal vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| parallax | — | jsPDF< 4.0.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | advanced-cluster-security/rhacs-main-rhel8Red Hat Advanced Cluster Security 4.8 · 1769615659 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-main-rhel8Red Hat Advanced Cluster Security 4.9 · 1770074713 and later · 1770250889 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-central-db-rhel8Red Hat Advanced Cluster Security 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-rhel8-operatorRed Hat Advanced Cluster Security 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-roxctl-rhel8Red Hat Advanced Cluster Security 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-scanner-v4-db-rhel8Red Hat Advanced Cluster Security 4 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-scanner-v4-rhel8Red Hat Advanced Cluster Security 4 | Unaffected | Not required | redhat-SADP |
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 [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.
A path traversal vulnerability has been discovered in the jdPDF npm library. 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. Only the node.js builds of the library are affected, namely the `dist/jspdf.node.js` and `dist/jspdf.node.min.js`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.6 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| parallax | jsPDF | < 4.0.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Advanced Cluster Security 4.8 | 1769615659 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4.9 | 1770074713 and later (unaffected · rpm)1770250889 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4 | Default: unaffected | redhat-SADP · adp |
Weaknesses
3- CWE-35 CWE-35: Path Traversal: '.../...//'
- CWE-73 CWE-73: External Control of File Name or Path
- CWE-73 External Control of File Name or Path
References
9- 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
- RHBZ#2427236 https://bugzilla.redhat.com/show_bug.cgi?id=2427236
- 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://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68428.json
Provider assertions
3GitHub_M · cna
jsPDF has Local File Inclusion/Path Traversal vulnerability
redhat-SADP · adp
jspdf: jsPDF Local File Inclusion/Path Traversal vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0ffd3ff4f576922d64fb0d254a2d896ace679084c5ccf69b2524f87638eda4e1
- Ingested
- 23 Sep 2026, 08:57:02 UTC
- Source record
- Official CVE record