{"id":"CVE-2025-68428","published":"2026-01-05T21:43:55Z","modified":"2026-09-07T12:04:51Z","title":"jsPDF has Local File Inclusion/Path Traversal vulnerability","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02177,"percentile":0.82774,"provenance":"source"},"cwes":[{"id":"CWE-35","name":"Path Traversal: '.../...//'"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/commit/a688c8f479929b24a6543b1fa2d6364abb03066d","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v4.0.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-68428","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2427236","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68428.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:1517","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:2350","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:2568","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":28.0,"factors":[{"name":"EPSS percentile","points":16.55},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.44}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-01-08","earliestUrl":"https://github.com/12nio/CVE-2025-68428_PoC","repos":[{"name":"12nio/CVE-2025-68428_PoC","url":"https://github.com/12nio/CVE-2025-68428_PoC","stars":24,"created":"2026-01-08"},{"name":"Nurjaman2004/jsPDF-Bulk-Detector-CVE-2025-68428-","url":"https://github.com/Nurjaman2004/jsPDF-Bulk-Detector-CVE-2025-68428-","stars":1,"created":"2026-01-14"}]},"first":{"date":"2026-01-08","source":"PoC-in-GitHub","url":"https://github.com/12nio/CVE-2025-68428_PoC"},"provenance":"source"},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 4.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-06T15:35:22.371810Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<4.0.0"],"patched":["4.0.0"],"from":["GHSA-f8cm-6447-x5h2"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the Node.js builds of jsPDF (the dist/jspdf.node.js and dist/jspdf.node.min.js files) lets the loadFile method, and the addImage, html and addFont methods, read arbitrary files from the local file system when given unsanitized paths. An attacker who can supply the file path can retrieve the contents of any file the Node process can read over the network, without authentication or user interaction, and those contents are embedded verbatim in the generated PDF.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:07Z"},"euvd":{"id":"EUVD-2026-0847","exploited":false,"provenance":"source"}}