Injection Flaw in jsPDF Library for PDF Generation
CVE-2026-24737
8.1HIGH
What is CVE-2026-24737?
The jsPDF library, utilized for generating PDFs in JavaScript, is susceptible to an injection flaw that permits users to manipulate properties and methods within the Acroform module. This vulnerability allows for the injection of arbitrary PDF objects, including potentially malicious JavaScript actions, which execute upon opening the document by an unsuspecting user. Specific API members, such as AcroformChoiceField.addOption, AcroformChoiceField.setOptions, AcroFormCheckBox.appearanceState, and AcroFormRadioButton.appearanceState, are particularly vulnerable when handling unsanitized input. The issue has been addressed in jsPDF version 4.1.0, and users are strongly encouraged to upgrade to this version to mitigate the risk.
Affected Version(s)
jsPDF < 4.1.0
