CVE-2026-25940
Received Received - Intake
Arbitrary PDF Object Injection in jsPDF Acroform Module

Publication date: 2026-02-19

Last updated on: 2026-02-23

Assigner: GitHub, Inc.

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 [email protected]. As a workaround, sanitize user input before passing it to the vulnerable API members.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-19
Last Modified
2026-02-23
Generated
2026-06-16
AI Q&A
2026-02-19
EPSS Evaluated
2026-06-14
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
parall jspdf to 4.2.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-116 The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Mitigation Strategies

To mitigate this vulnerability, update jsPDF to version 4.2.0 or later where the issue is fixed.

As a workaround, sanitize all user input before passing it to the vulnerable Acroform module properties and methods to prevent injection of arbitrary PDF objects.

Executive Summary

This vulnerability exists in the jsPDF library prior to version 4.2.0, specifically in the Acroform module. It allows users to inject arbitrary PDF objects, including JavaScript actions, by controlling certain properties and methods without proper sanitization. When a victim interacts with a radio option in the PDF, the injected JavaScript actions can be executed.

The issue arises if unsanitized input is passed to vulnerable API members, enabling this injection. The vulnerability was fixed in jsPDF version 4.2.0.

Impact Analysis

This vulnerability can lead to the execution of arbitrary JavaScript code within a PDF document when a user interacts with certain form elements, such as radio buttons. This can be exploited to perform malicious actions like stealing sensitive information, executing unwanted scripts, or compromising the victim's system security.

Compliance Impact

I don't know

Detection Guidance

I don't know

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-25940. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart