jspdf

PDF Document creation from JavaScript

4.2.1Latest, 17 Mar 2026
94MDownloads, last month
0Advisories on the latest
15Advisories, all versions
MITLicence
31KStars

Known advisories

Severity Advisory Fix Published
High jsPDF has a PDF Object Injection via FreeText color CVE-2026-31898 Fixed in 4.2.1 17 Mar 2026
Critical jsPDF has HTML Injection in New Window paths CVE-2026-31938 Fixed in 4.2.1 17 Mar 2026
High jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions CVE-2026-25535 Fixed in 4.2.0 19 Feb 2026
High jsPDF has a PDF Object Injection via Unsanitized Input in addJS Method CVE-2026-25755 Fixed in 4.2.0 19 Feb 2026
High jsPDF has a PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and "AS" property) CVE-2026-25940 Fixed in 4.2.0 19 Feb 2026
High jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder CVE-2026-24133 Fixed in 4.1.0 2 Feb 2026
Moderate jsPDF has Shared State Race Condition in addJS Plugin CVE-2026-24040 Fixed in 4.1.0 2 Feb 2026
High jsPDF has PDF Injection in AcroFormChoiceField that allows Arbitrary JavaScript Execution CVE-2026-24737 Fixed in 4.1.0 2 Feb 2026
Moderate jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation) CVE-2026-24043 Fixed in 4.1.0 2 Feb 2026
Critical jsPDF has Local File Inclusion/Path Traversal vulnerability CVE-2025-68428 Fixed in 4.0.0 5 Jan 2026
High jsPDF Denial of Service (DoS) CVE-2025-57810 Fixed in 3.0.2 26 Aug 2025
High jsPDF Bypass Regular Expression Denial of Service (ReDoS) CVE-2025-29907 Fixed in 3.0.1 18 Mar 2025
Moderate Cross-site scripting in jspdf CVE-2020-7690 Fixed in 2.0.0 17 May 2021
Moderate Cross-site scripting in jspdf CVE-2020-7691 Fixed in 2.0.0 11 May 2021
High jspdf vulnerable to Regular Expression Denial of Service (ReDoS) CVE-2021-23353 Fixed in 2.3.1 12 Mar 2021

In the news

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.