CVE-2026-24737CWE-116CWE-917

CVE-2026-24737

High · published February 3, 2026

CVSS v3.1
8.1
EPSS
1%
Percentile
47.9
In the wild
Unconfirmed
What it is

⚡ A sneaky flaw in jsPDF could turn your PDFs into hidden traps! Users can inject JavaScript that runs automatically when unsuspecting victims open the document. 🔥 Think of it like a restaurant that allows customers to add their own secret ingredients to a dish without checking. If someone adds a dangerous spice, the unsuspecting diner could end up with a meal that has unexpected consequences! An attacker could craft a seemingly innocent PDF that runs malicious actions upon opening, leading to data theft or other harmful behaviors. The potential for this vulnerability is absolutely devastating, as it puts users' systems at risk right when they think they're dealing with a safe document.

Put simply

Think of it like a restaurant that allows customers to add their own secret ingredients to a dish without checking. If someone adds a dangerous spice, the unsuspecting diner could end up with a meal that has unexpected consequences! The vulnerability in jsPDF allows for arbitrary PDF object injection through specific methods and properties of the Acroform module, namely AcroformChoiceField.addOption and others. This means unsanitized user input can execute unwanted JavaScript actions when the PDF is opened.

What to do

An attacker could craft a seemingly innocent PDF that runs malicious actions upon opening, leading to data theft or other harmful behaviors. The potential for this vulnerability is absolutely devastating, as it puts users' systems at risk right when they think they're dealing with a safe document. Update jsPDF to version 4.1.0 or later immediately to mitigate this risk. Ensure to validate all user input that could be passed to the vulnerable methods before processing. Regularly review your PDF generation logic for any potential vulnerabilities. You can tackle this issue with a quick update and vigilant input validation! You've got this! 🛡️

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00598 · 47.9th percentile
Weaknesses
CWE-116 · Improper Encoding or Escaping of Output; CWE-917 · Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
Published
2026-02-03T04:16Z
Affected products (1)
ProductVersionsFixed in
parall/jspdf< 4.1.04.1.0
References (8)
EPSS history
Timeline
  • 02 FEB 20:29Z
    jsPDF has a PDF Injection in AcroFormChoiceField which allows Arbitrary JavaScript Execution
    cvelistv5