CVE-2025-29907 Details
Description
jsPDF is a library to generate PDFs in JavaScript. Prior to 3.0.1, user control of the first argument of the addImage method results in CPU utilization and denial of service. If given the possibility to pass unsanitised image urls to the addImage method, a user can provide a harmful data-url that results in high CPU utilization and denial of service. Other affected methods are html and addSvgAsImage. The vulnerability was fixed in jsPDF 3.0.1.
A denial-of-service vulnerability has been identified in jsPDF versions prior to 3.0.1. The issue arises in the 'addImage' method, where user-controlled image URLs can be passed without proper sanitization. This allows the injection of harmful data URLs that cause excessive CPU usage, leading to a denial-of-service condition. Similar vulnerabilities exist in the 'html' and 'addSvgAsImage' methods.
Upgrade to jsPDF version 3.0.1 or later. If upgrading is not possible, sanitize image URLs before passing them to the 'addImage' method or any other affected methods.
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 Mar 18, 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/commit/b167c43c27c466eb914b927885b06073708338df | [email protected] | Patch |
| https://github.com/parallax/jsPDF/security/advisories/GHSA-w532-jxjh-hjhj | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| parall jspdf | < 3.0.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 22, 2025 | Initial Analysis | [email protected] |
| Mar 18, 2025 | New CVE Received | [email protected] |