CVE Catalog

CVE-2026-25535

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.72%

51th percentile - higher than 51% of all known CVEs

Summary

The jsPDF library prior to version 4.2.0 is vulnerable to a denial of service attack via user control of the first argument of the `addImage` method. Passing a malicious GIF file with large width/height headers causes excessive memory allocation and denial of service. The `html` method is also affected.

Risk Assessment

An attacker can exhaust server or client application memory, leading to service disruption. The risk is especially high in environments where users can pass unsanitized image data or URLs.

Recommendation

Upgrade jsPDF to version 4.2.0 or later immediately. If upgrading is not possible, strictly sanitize image data and URLs before passing them to the `addImage` or `html` methods.

Other vulnerabilities in jsPDF

See all
Original NVD description (English source)

jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.0, user control of the first argument of the `addImage` method results in denial of service. If given the possibility to pass unsanitized image data or URLs to the `addImage` method, a user can provide a harmful GIF file that results in out of memory errors and denial of service. Harmful GIF files have large width and/or height entries in their headers, which lead to excessive memory allocation. Other affected methods are: `html`. The vulnerability has been fixed in jsPDF 4.2.0. As a workaround, sanitize image data or URLs before passing it to the addImage method or one of the other affected methods.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS