Description (CNA)
jsPDF is a library to generate PDFs in JavaScript. Prior to 4.1.0, user control of properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to one of the following methods or properties, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim opens the document. The vulnerable API members are AcroformChoiceField.addOption, AcroformChoiceField.setOptions, AcroFormCheckBox.appearanceState, and AcroFormRadioButton.appearanceState. The vulnerability has been fixed in jsPDF@4.1.0.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| parallax / jsPDF | affected < 4.1.0 |
CWE
CWE-116
References
- https://github.com/parallax/jsPDF/security/advisories/GHSA-pqxr-3g65-p328
- https://github.com/parallax/jsPDF/commit/da291a5f01b96282545c9391996702cdb8879f79
- https://github.com/parallax/jsPDF/releases/tag/v4.1.0
ADP enrichment
No English description supplied.
No references supplied.
A flaw was found in jsPDF, a JavaScript library for generating PDFs. A remote attacker could exploit this vulnerability by providing unsanitized input to specific methods within the Acroform module, such as AcroformChoiceField.addOption or AcroFormCheckBox.appearanceState. This allows the attacker to inject arbitrary PDF objects, including JavaScript actions, which are then executed when a victim opens the crafted PDF document, leading to arbitrary code execution.