PT-2026-20849 · Jspdf · Jspdf

·

CVE-2026-25535

·

Published

2026-02-19

·

Updated

2026-08-18

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.2.0
Description An issue exists where the addImage() and html() methods accept user input in their first argument without proper sanitization. An attacker can provide a specially crafted GIF file containing excessively large width and height values in the headers. This forces the application to allocate an excessive amount of memory, leading to an out-of-memory condition, application crashes, and denial of service.
Recommendations Update to version 4.2.0 or later. As a temporary workaround, sanitize image data or URLs before passing them to the addImage() method or the html() method.

Exploit

Fix

DoS

Resource Exhaustion

Allocation of Resources Without Limits

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

Weakness Enumeration

Related Identifiers

CVE-2026-25535
GHSA-67PG-WM7F-Q7FJ

Affected Products

Jspdf