Code Injection in jspdf - CVE-2026-25755
Published: April 27, 2026
jspdf
Detailed vulnerability description
The vulnerability allows a remote attacker to inject arbitrary PDF objects into the generated document.
The vulnerability exists due to improper control of code generation in the addJS method when processing user-supplied JavaScript input. A remote attacker can supply a crafted addJS argument to inject arbitrary PDF objects into the generated document.
User interaction is required to open the generated PDF, and injected additional actions may execute when the document is opened or receives focus.