CVE-2025-68428CWE-22CWE-35CWE-73path-traversal

CVE-2025-68428

High · published January 6, 2026

CVSS v3.1
7.5
EPSS
2%
Percentile
82.2
In the wild
Unconfirmed
What it is

🚨 A local file inclusion vulnerability in jsPDF prior to version 4.0.0 lets users snoop around your server, retrieving any file they want! 🔥 Imagine a sneaky delivery person who, instead of just leaving your package at the door, opens your mailbox and starts reading your personal letters. This is what's happening with jsPDF when it blindly trusts input for retrieving files, allowing attackers to access sensitive data without permission. An attacker can exploit this vulnerability to obtain the contents of any file on the server where the node process runs, including sensitive information like configuration files or user data. This could lead to an absolute disaster if an attacker gets hold of private keys or credentials, potentially compromising the entire system!

Put simply

Imagine a sneaky delivery person who, instead of just leaving your package at the door, opens your mailbox and starts reading your personal letters. This is what's happening with jsPDF when it blindly trusts input for retrieving files, allowing attackers to access sensitive data without permission. This vulnerability arises from unsanitized paths passed to the loadFile method in jsPDF's node.js builds, which allows attackers to perform path traversal and access arbitrary files on the server's filesystem. Affected methods include `addImage`, `html`, and `addFont`, all of which can expose sensitive data in generated PDFs.

What to do

An attacker can exploit this vulnerability to obtain the contents of any file on the server where the node process runs, including sensitive information like configuration files or user data. This could lead to an absolute disaster if an attacker gets hold of private keys or credentials, potentially compromising the entire system! Upgrade to jsPDF version 4.0.0 or later immediately to resolve this critical issue, as it restricts file system access by default. Additionally, for older Node.js versions, make sure to sanitize any user-provided paths before passing them to jsPDF to prevent exploitation. Consider using the `--permission` flag in newer Node.js versions for added security. You've got this! By following these steps, you can protect your applications and maintain your heroic security status! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02177 · 82.2th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-35 · Path Traversal: '.../...//'; CWE-73 · External Control of File Name or Path
Published
2026-01-06T03:15Z
Affected products (1)
ProductVersionsFixed in
parall/jspdf< 4.0.04.0.0
References (9)
EPSS history
Timeline
  • 05 JAN 21:43Z
    jsPDF has Local File Inclusion/Path Traversal vulnerability
    cvelistv5