Critical jsPDF Node.js Flaw Exposes Sensitive Data via Generated PDFs
In January 2026, a critical vulnerability (CVE-2025-68428) was uncovered in the popular JavaScript PDF generation library jsPDF, impacting its Node.js builds prior to version 4.0. Attackers could exploit improper input validation in the 'loadFile' function, enabling local file inclusion and path traversal. If user-controlled data was passed as a file path to certain methods, sensitive local files could be incorporated into generated PDFs, risking data exposure or exfiltration. The flaw's severity score of 9.2 reflects the widespread use of jsPDF—over 3.5 million weekly downloads—as well as the supply-chain risk to downstream applications that integrated vulnerable versions. This incident highlights the persistent risk associated with supply-chain dependencies and their indirect impact on downstream systems. With development teams increasingly relying on open-source libraries, vulnerabilities like CVE-2025-68428 demonstrate the urgent need for vendor diligence, dependency hygiene, and layered input validation in modern application stacks.
Kill Chain