REDHAT-BUG-2440993: High severity jsPDF jsPDF vulnerability

Published Feb 19, 2026
·
Updated

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the argument of the addJS method allows an attacker to inject arbitrary PDF objects into the generated document. By crafting a payload that escapes the JavaScript string delimiter, an attacker can execute malicious actions or alter the document structure, impacting any user who opens the generated PDF. The vulnerability has been fixed in jspdf.0. As a workaround, escape parentheses in user-provided JavaScript code before passing them to the addJS method.

Affected Software

1 affected component
jsPDF jsPDF<4.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade jspdf to a version that resolves this vulnerability.

    Fixed in 0
  2. Configuration

    As a workaround, escape parentheses in any user-provided JavaScript code before passing it to the jsPDF `addJS` method.

    jsPDF addJS input handling = escape parentheses in user-provided JavaScript code before passing to addJS
  3. Compensating control

    Do not allow untrusted users to control the argument passed to the jsPDF `addJS` method; only supply JavaScript to `addJS` from trusted sources to prevent PDF object injection (described as possible prior to 4.2.0).

Event History

Feb 19, 2026
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2440993?

The severity of REDHAT-BUG-2440993 is classified as high, with a score of 7.

2

How do I fix REDHAT-BUG-2440993?

To fix REDHAT-BUG-2440993, upgrade jsPDF to version 4.2.0 or later.

3

What causes REDHAT-BUG-2440993?

REDHAT-BUG-2440993 is caused by user control of the arguments in the `addJS` method, allowing for arbitrary PDF object injection.

4

Who is affected by REDHAT-BUG-2440993?

Developers and users of jsPDF versions prior to 4.2.0 are affected by REDHAT-BUG-2440993.

5

What potential impact does REDHAT-BUG-2440993 have?

The potential impact of REDHAT-BUG-2440993 includes the ability for attackers to execute malicious code within generated PDF documents.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203