CVE-2026-25940
HIGH 8.1CVSS 3.1jsPDF has a 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.
- Published
- 19 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-116
- Also known as
- GHSA-p5xg-68wr-hm3m
- Sources
- NVDJSONOSV GHSA-p5xg-68wr-hm3mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parall | jspdfcpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:* |
< 4.2.0 | 4.2.0 |
| OSV | npm | jspdf | < 4.2.0 | 4.2.0 |
References
- https://github.com/parallax/jsPDF/commit/71ad2dbfa6c7c189ab42b855b782620fa8a38375 · Patch, WEB
- https://github.com/parallax/jsPDF/releases/tag/v4.2.0 · Release Notes, WEB
- https://github.com/parallax/jsPDF/security/advisories/GHSA-p5xg-68wr-hm3m · Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:7110
- https://access.redhat.com/errata/RHSA-2026:7128
- https://access.redhat.com/security/cve/CVE-2026-25940
- https://bugzilla.redhat.com/show_bug.cgi?id=2441016
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25940.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-25940 · ADVISORY
- https://github.com/parallax/jsPDF · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 19 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Feb 2026)