PT-2026-5719 · Jspdf · Jspdf

Karimtantawey

·

Published

2026-02-02

·

Updated

2026-02-06

·

CVE-2026-24133

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions jsPDF versions prior to 4.1.0
Description jsPDF is a JavaScript library used to generate PDFs. A flaw exists where user-controlled input to the addImage method can lead to a denial of service. Specifically, providing a malicious BMP image with large width and/or height values in its header can cause excessive memory allocation, resulting in out-of-memory errors. The html method is also affected by this issue. The addImage function is vulnerable due to the lack of sanitization of image data or URLs. An example attack involves providing malicious BMP image data as the first argument to the addImage function.
Recommendations Update to jsPDF version 4.1.0 or later. Sanitize image data or URLs before passing them to the addImage method or the html method.

Exploit

Fix

DoS

RCE

Allocation of Resources Without Limits

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-24133
GHSA-95FX-JJR5-F39C

Affected Products

Jspdf