Install
jspdf
PDF Document creation from JavaScript
4.2.1Latest, 17 Mar 2026
94MDownloads, last month
0Advisories on the latest
15Advisories, all versions
MITLicence
31KStars
Source · Homepage · Ask AI Mode · · Markdown
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
- Sending an invoice PDF to WhatsApp from a web app (Web Share API, html2canvas, jsPDF) dev.to, 21 Nov 2026
- jsPDF Vulnerability Exposes Developers to Serious PDF Object Injection Risk techlomedia.in, 23 Feb 2026
- Critical jsPDF Vulnerability Enables Arbitrary File Read in Node.js (CVE-2025-68428) securityboulevard.com, 12 Jan 2026
- Critical Flaw in jsPDF Library Allows Attackers to Read Arbitrary Files cyberpress.org, 7 Jan 2026
- Critical jsPDF flaw lets hackers steal secrets via generated PDFs bleepingcomputer.com, 7 Jan 2026
On Hacker News
- Show HN: TinyPDF – 3kb pdf library (70x smaller than jsPDF) 253 points, 33 comments, 18 Dec 2025
- JsPDF - HTML5 PDF generator 191 points, 67 comments, 25 Aug 2013
- JsPDF generates PDF documents using pure JavaScript 76 points, 13 comments, 23 Apr 2009
- JsPDF: Generate PDFs on the Client-Side with Just JavaScript 24 points, 3 comments, 15 Aug 2024
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.