CVE-2026-25940: 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.
Security readout for executives and security teams
Plain-English summary
Applications using vulnerable jsPDF AcroForm features may let untrusted input place malicious actions inside generated PDFs. Those actions can execute when a recipient interacts with a radio option, potentially compromising confidentiality, integrity, and availability. The issue requires victim interaction and is fixed in jsPDF 4.2.0.
Executive priority
Prioritize remediation for internet-facing or multi-tenant PDF-generation services that create interactive forms from customer-controlled data. Upgrade promptly because the potential impact is critical, although exploitation requires a vulnerable data flow, recipient interaction, and a viewer that processes the injected action.
Technical view
Before jsPDF 4.2.0, insufficient output encoding in the AcroForm module permits arbitrary PDF-object injection through user-controlled RadioButton.createOption input and the "AS" property. Injected JavaScript actions may execute when a victim hovers over the affected radio option. Impact depends on passing unsanitized input and PDF-viewer behavior.
Likely exposure
Exposure is most likely where jsPDF versions below 4.2.0 generate AcroForm PDFs and untrusted data reaches the identified API members without sanitization. Systems not using AcroForm radio options, or not accepting user-controlled values there, may be less exposed. Dependency and data-flow verification is required.
Exploitation context
The CVSS score is 9.6, reflecting network-reachable input, low attack complexity, no required privileges, victim interaction, and potentially severe cross-scope impact. The supplied record says the action executes on hover. CVE-2026-25940 is not listed as KEV in the bundle, and no active exploitation evidence is provided.
Researcher notes
CWE-116 indicates improper encoding or escaping of output. The vulnerable surface is specifically identified as AcroForm RadioButton.createOption and the "AS" property; broader jsPDF exposure should not be assumed without evidence. Viewer-specific execution behavior, public proof-of-concept availability, and observed attacks are not established by the supplied sources.
Mitigation direction
Upgrade jsPDF to version 4.2.0 or later.
Rebuild and redeploy every application or service bundling the vulnerable library.
Until upgraded, sanitize untrusted input before passing it to affected AcroForm API members.
Review vendor and downstream package guidance for any environment-specific remediation.
Validation and detection
Inspect manifests, lockfiles, and deployed bundles for jsPDF versions below 4.2.0.
Trace untrusted data flows into RadioButton.createOption and the "AS" property.
Confirm upgraded production artifacts actually contain jsPDF 4.2.0 or later.
Test generated PDFs for unexpected action objects derived from user-controlled fields.
Verify sanitization tests cover PDF syntax characters and malformed input without using executable payloads.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-116: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
9Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-116 · source CWE mapping
Improper Encoding or Escaping of Output
Improper Encoding or Escaping of Output represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.