# CVE-2026-25940: jsPDF's PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and "AS" property)

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-02-19T15:26:57.645Z
- Modified: 2026-09-10T03:50:35.418Z
- Also known as: GHSA-p5xg-68wr-hm3m
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- parallax jsPDF: < 4.2.0
- advanced-cluster-security/rhacs-main-rhel8: no versions given (not affected: from 1775594119 before *; from 1775594284 before *)
- jspdf (npm): before 4.2.0
- parall jspdf: before 4.2.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/parallax/jsPDF/security/advisories/GHSA-p5xg-68wr-hm3m> (vendor-advisory, web)
- <https://github.com/parallax/jsPDF/commit/71ad2dbfa6c7c189ab42b855b782620fa8a38375> (patch, web)
- <https://github.com/parallax/jsPDF/releases/tag/v4.2.0> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-25940> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2441016> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25940.json>
- <https://access.redhat.com/errata/RHSA-2026:7110> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7128> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25940> (advisory)
- <https://github.com/parallax/jsPDF> (package)

## Sources

- CVE List: [CVE-2026-25940](https://www.cve.org/CVERecord?id=CVE-2026-25940), CVE Terms of Use, modified 2026-09-07
- GitHub Advisory Database: [GHSA-p5xg-68wr-hm3m](https://github.com/advisories/GHSA-p5xg-68wr-hm3m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25940](https://nvd.nist.gov/vuln/detail/CVE-2026-25940), Public domain, modified 2026-08-18

---

Page: https://cve.day/CVE-2026-25940 · Whole record: https://cve.day/CVE-2026-25940.json · Rebuilt by cve.day 2026-11-25T22:59:14.202Z
