CVE-2026-25535
jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions
Description
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.
INFO
Published Date :
Feb. 19, 2026, 3:16 p.m.
Last Modified :
Feb. 23, 2026, 7:13 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 4.0 | HIGH | [email protected] |
Solution
- Update jsPDF to version 4.2.0 or higher.
- Sanitize image data and URLs before use.
- Apply vendor patches if available.
Public PoC/Exploit Available at Github
CVE-2026-25535 has a 2 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-25535.
| URL | Resource |
|---|---|
| https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md | Exploit Third Party Advisory |
| https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6 | Patch |
| https://github.com/parallax/jsPDF/releases/tag/v4.2.0 | Release Notes |
| https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-25535 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-25535
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
# مستودع asrar-mared هذا هو المستودع الرئيسي لمجموعة **المارد الرقمي**، نقطة التحكم المركزية التي تجمع كل المشاريع والميول التقنية تحت راية واحدة. يمثل الأساس الذي تُبنى عليه الفروع الأخرى، ويُدار منه كل شيء من تنظيم الكود إلى إدارة المجتمع. للاطلاع على المستودع: [asrar-mared](https://github.com/asrar-mared)
HTML CSS
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-25535 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-25535 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Feb. 23, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Added CPE Configuration OR *cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:* versions up to (excluding) 4.2.0 Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/releases/tag/v4.2.0 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md Types: Exploit, Third Party Advisory -
New CVE Received by [email protected]
Feb. 19, 2026
Action Type Old Value New Value Added Description 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-400 Added CWE CWE-770 Added Reference https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6 Added Reference https://github.com/parallax/jsPDF/releases/tag/v4.2.0 Added Reference https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj Added Reference https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md