{"id":"CVE-2026-25940","published":"2026-02-19T15:26:57Z","modified":"2026-09-07T12:05:04Z","title":"jsPDF's PDF Injection in AcroForm module allows Arbitrary JavaScript Execution (RadioButton.createOption and \"AS\"…","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.44471,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-p5xg-68wr-hm3m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/commit/71ad2dbfa6c7c189ab42b855b782620fa8a38375","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v4.2.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25940","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2441016","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25940.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":8.89},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 4.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-19T17:07:05.792006Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<4.2.0"],"patched":["4.2.0"],"from":["GHSA-p5xg-68wr-hm3m"],"provenance":"source"}],"summary":{"text":"jsPDF, a JavaScript library for generating PDFs, has a flaw in its AcroForm module, where user-controlled properties and methods allow arbitrary PDF objects, such as JavaScript actions, to be injected into the generated document. An attacker who can get unsanitized input passed to the affected properties can run JavaScript in the victim's PDF viewer when the victim hovers over the radio option, which requires the victim to interact with the document.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:04Z"},"euvd":{"id":"EUVD-2026-8108","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-24737","published":"2026-02-02","fixed":"4.1.0","kev":false},{"cve":"CVE-2026-25535","published":"2026-02-19","fixed":"4.2.0","kev":false},{"cve":"CVE-2026-25755","published":"2026-02-19","fixed":"4.2.0","kev":false},{"cve":"CVE-2026-25940","published":"2026-02-19","fixed":"4.2.0","kev":false},{"cve":"CVE-2026-31898","published":"2026-03-18","fixed":"4.2.1","kev":false,"link":{"from":"CVE-2026-25940","to":"CVE-2026-31898","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jspdf","fromFixed":"4.2.0","toFixed":"4.2.1","daysApart":27}]}},{"cve":"CVE-2026-31938","published":"2026-03-18","fixed":"4.2.1","kev":false,"link":{"from":"CVE-2026-25940","to":"CVE-2026-31938","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jspdf","fromFixed":"4.2.0","toFixed":"4.2.1","daysApart":27}]}}],"package":"npm:jspdf"}}