npm / jspdf
jspdf
What changed in jspdf 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
11 security1 new APIs and options
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjspdf 412 changes
Security 11
jsPDF has a PDF Object Injection via FreeText color
jsPDF has HTML Injection in New Window paths
jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions
jsPDF has a PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and "AS" property)
jsPDF has a PDF Object Injection via Unsanitized Input in addJS Method
Fixes PDF injection that allowed arbitrary JavaScript execution in the AcroForm module.
jsPDF has PDF Injection in AcroFormChoiceField that allows Arbitrary JavaScript Execution
jsPDF has Shared State Race Condition in addJS Plugin
jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder
jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation)
jsPDF has Local File Inclusion/Path Traversal vulnerability
New APIs and options 1
Adds a default property to the package.json export section.