Parallax jsPDF
jsPDF's PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and "AS" property)
jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.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 property, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim hovers over the radio option. The vulnerability has been fixed in jsPDF@4.2.0. As a workaround, sanitize user input before passing it to the vulnerable API members.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.2.0
Fixed in 4.2.0
Mitigation
Upgrade jsPDF to 4.2.0 or later.
References
- Vendor advisory github.com/parallax/jsPDF/security/advisories/…
- Patch github.com/parallax/jsPDF/commit/71ad2dbfa6c7c…
- Release notes github.com/parallax/jsPDF/releases/tag/v4.2.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 suspicious or fake
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| open-flaw/CVE-2026-25940 | 2 Mar 2026 +10 d | 0 | Fake
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.