CVE-2025-57810 Details
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.
A denial-of-service vulnerability has been identified in jsPDF versions prior to 3.0.2. The issue arises in the addImage method, where user control of the first argument allows the introduction of unsanitized image data or URLs. This can lead to high CPU utilization and prolonged processing times. The vulnerability can be exploited by providing a harmful PNG file, which causes the library to enter a long-running loop, effectively freezing the application.
Users are advised to upgrade to jsPDF version 3.0.2 or later, where this vulnerability has been fixed. In the patched version, invalid PNG files are properly handled by throwing an error instead of causing excessive CPU usage.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw | CISA-ADP | ExploitVendor Advisory |
| https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9 | [email protected] | Patch |
| https://github.com/parallax/jsPDF/pull/3880 | [email protected] | Issue Tracking |
| https://github.com/parallax/jsPDF/releases/tag/v3.0.2 | [email protected] | Release Notes |
| https://github.com/parallax/jsPDF/security/advisories/GHSA-8mvj-3j78-4qmw | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| parall jspdf | < 3.0.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 9, 2025 | Initial Analysis | [email protected] |
| Aug 26, 2025 | New CVE Received | [email protected] |
| Aug 26, 2025 | CVE Modified | CISA-ADP |