---
title: "CVE-2025-68428: jsPDF has Local File Inclusion/Path Traversal vulnerability"
url: https://erroneo.us/security/cve/CVE-2025-68428/
description: "CVE-2025-68428 (jspdf (npm)): jsPDF is a library to generate PDFs in JavaScript. Prior to version 4.0.0, user control of the first argument of the loadFile…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-01-05
date_modified: 2026-09-07
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-68428"
kev: false
cvss: 9.2
epss: 0.02177
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-68428: jsPDF has Local File Inclusion/Path Traversal vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 2.2% , percentile 82: FIRST’s model estimates a 2.2% chance of exploitation activity in the next 30 days, higher than 82% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes jspdf (npm) <= 3.0.4, fixed in 4.0.0 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `jspdf` <= 3.0.4 → fixed: 4.0.0

## Affected products (CVE record)

- parallax jsPDF: < 4.0.0

## Severity

- GitHub_M CVSS 4.0: 9.2 `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`
- redhat-SADP CVSS 3.1: 8.6 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub CVSS 4.0: 9.2 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact partial .
- FIRST EPSS (model of 2026-10-21): 2.18% probability of exploitation activity in the next 30 days; percentile 82.

## Sources

- [access.redhat.com](https://access.redhat.com/errata/RHSA-2026:1517)
- [access.redhat.com](https://access.redhat.com/errata/RHSA-2026:2350)
- [access.redhat.com](https://access.redhat.com/errata/RHSA-2026:2568)
- [GitHub Advisory GHSA-f8cm-6447-x5h2](https://github.com/advisories/GHSA-f8cm-6447-x5h2)
- [CVE.org record CVE-2025-68428](https://www.cve.org/CVERecord?id=CVE-2025-68428)
- [NVD entry CVE-2025-68428](https://nvd.nist.gov/vuln/detail/CVE-2025-68428)
- [github.com](https://github.com/parallax/jsPDF/security/advisories/GHSA-f8cm-6447-x5h2)
- [github.com](https://github.com/parallax/jsPDF/commit/a688c8f479929b24a6543b1fa2d6364abb03066d)
- [github.com](https://github.com/parallax/jsPDF/releases/tag/v4.0.0)
- [access.redhat.com](https://access.redhat.com/security/cve/CVE-2025-68428)
- [RHBZ#2427236](https://bugzilla.redhat.com/show_bug.cgi?id=2427236)
- [security.access.redhat.com](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-68428.json)

---
Source page: https://erroneo.us/security/cve/CVE-2025-68428/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
