Paper/Archive/CVE-2025-68428

CVE-2025-68428

parallax jsPDF — jsPDF has Local File Inclusion/Path Traversal vulnerability

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
jsPDF< 4.0.0–CNA
Red Hat Advanced Cluster Security 4.8see advisory1769615659redhat-SADP
Red Hat Advanced Cluster Security 4.9see advisory1770074713redhat-SADP
Red Hat Advanced Cluster Security 4see advisory–redhat-SADP
Red Hat Advanced Cluster Security 4see advisory–redhat-SADP
Red Hat Advanced Cluster Security 4see advisory–redhat-SADP
Red Hat Advanced Cluster Security 4see advisory–redhat-SADP
Red Hat Advanced Cluster Security 4see advisory–redhat-SADP

Scores by source

GitHub_M (CNA)9.2CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
redhat-SADP (CNA)8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: partial

References

refgithub.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2refgithub.com/parallax/jsPDF/commit/a688c8f479929b24a6543b1fa2d6364abb03066drefgithub.com/parallax/jsPDF/releases/tag/v4.0.0refaccess.redhat.com/security/cve/CVE-2025-68428refbugzilla.redhat.com/show_bug.cgi?id=2427236refsecurity.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68428.jsonadvisoryaccess.redhat.com/errata/RHSA-2026:1517advisoryaccess.redhat.com/errata/RHSA-2026:2350advisoryaccess.redhat.com/errata/RHSA-2026:2568