CVE-2025-57810
jsPDF Parsing of Corrupt PNGs Leads to Potential Denial of Service (DoS)
Description
jsPDF is a library to generate PDFs in JavaScript. Prior to 3.0.2, user control of the first argument of the addImage method results in CPU utilization and denial of service. If given the possibility to pass unsanitized image data or URLs to the addImage method, a user can provide a harmful PNG file that results in high CPU utilization and denial of service. The vulnerability was fixed in jsPDF 3.0.2.
INFO
Published Date :
Aug. 26, 2025, 4:15 p.m.
Last Modified :
Sept. 9, 2025, 6:56 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 3.0.2 or later.
- Ensure all image data is sanitized before use.
- Avoid using unsanitized image data or URLs.
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-2025-57810
.
URL | Resource |
---|---|
https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9 | Patch |
https://github.com/parallax/jsPDF/pull/3880 | Issue Tracking |
https://github.com/parallax/jsPDF/releases/tag/v3.0.2 | Release Notes |
https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw | Exploit Vendor Advisory |
https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw | Exploit 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-2025-57810
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-2025-57810
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).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-57810
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-57810
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]
Sep. 09, 2025
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) 3.0.2 Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/pull/3880 Types: Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/releases/tag/v3.0.2 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw Types: Exploit, Vendor Advisory Added Reference Type CISA-ADP: https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw Types: Exploit, Vendor Advisory -
New CVE Received by [email protected]
Aug. 26, 2025
Action Type Old Value New Value Added Description jsPDF is a library to generate PDFs in JavaScript. Prior to 3.0.2, user control of the first argument of the addImage method results in CPU utilization and denial of service. If given the possibility to pass unsanitized image data or URLs to the addImage method, a user can provide a harmful PNG file that results in high CPU utilization and denial of service. The vulnerability was fixed in jsPDF 3.0.2. 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-20 Added CWE CWE-770 Added Reference https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9 Added Reference https://github.com/parallax/jsPDF/pull/3880 Added Reference https://github.com/parallax/jsPDF/releases/tag/v3.0.2 Added Reference https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 26, 2025
Action Type Old Value New Value Added Reference https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw