Path traversal in jspdf - CVE-2025-68428

 

Path traversal in jspdf - CVE-2025-68428

Published: January 5, 2026 / Updated: January 16, 2026


Vulnerability identifier: #VU120930
CSH Severity: High
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-68428
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences passed via the first argument of the loadFile, addImage, html, and addFont methods in the node.js build in dist/jspdf.node.js and dist/jspdf.node.min.js files. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.


Affected software

jspdf

How to mitigate CVE-2025-68428

Install updates from vendor's website.

jspdf - update to 4.0.0

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins