PT-2026-25977

CVE-2026-31938

·

Published

2026-03-17

·

Updated

2026-10-08

Description by

CVSS 2.0
9.7
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:P
Name of the Vulnerable Software and Affected Versions jsPDF versions prior to 4.2.1
Description jsPDF, a JavaScript library used for generating PDFs, contains a flaw where insufficient sanitization of user-controlled input within the options argument of the output function allows attackers to inject arbitrary HTML, including scripts, into the browser context when a generated PDF is opened. This can lead to the execution of malicious code within the victim's browser, potentially allowing attackers to extract or modify sensitive information. The vulnerability affects the "pdfobjectnewwindow", "pdfjsnewwindow", and "dataurlnewwindow" overloads, specifically impacting the pdfObjectUrl, pdfJsUrl, and filename options. An example attack vector involves crafting a malicious payload within the filename option to inject a script tag.
Recommendations Upgrade to jsPDF version 4.2.1 or sanitize user input before passing it to the output method.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-WFV2-PWC8-CRG5
Found an issue in the description? Have something to add? Feel free to write us 👾