External Control of File Name or Path Affecting jspdf package, versions <4.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-JSPDF-14873131
  • published8 Jan 2026
  • disclosed5 Jan 2026
  • creditKwangwoon Kim

Introduced: 5 Jan 2026

CVE-2025-68428  (opens in a new tab)
CWE-35  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade jspdf to version 4.0.0 or higher.

Overview

jspdf is a PDF Document creation from JavaScript

Affected versions of this package are vulnerable to External Control of File Name or Path via the loadFile, addImage, html and addFont functions. An attacker can access and include arbitrary files from the local file system into generated PDFs.

Workaround

This vulnerability can be mitigated by using the Node.js --permission flag in production environments (available in Node.js v20.0.0 and stable since v22.13.0/v23.5.0/v24.0.0).

CVSS Base Scores

version 4.0
version 3.1