# jspdf (npm)

PDF Document creation from JavaScript

- Latest: 4.2.1 (2026-03-17)
- Licence: MIT
- Downloads: 94267570 last month
- Advisories on the latest version: 0

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

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