CVE-2025-29907

jsPDF Bypass Regular Expression Denial of Service (ReDoS)

Published Mar 18, 2025 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-6699 jsPDF Bypass Regular Expression Denial of Service (ReDoS)
Github GHSA Github GHSA GHSA-w532-jxjh-hjhj jsPDF Bypass Regular Expression Denial of Service (ReDoS)
History
Type Values Removed Values Added
First Time appeared Parall
Parall jspdf
CPEs cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:*
Vendors & Products Parall
Parall jspdf
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title jsPDF Bypass Regular Expression Denial of Service (ReDoS)
Weaknesses CWE-400
CWE-770
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 18, 2025, 7:02 PM
Reserved
Mar 12, 2025, 1:42 PM
Status
Analyzed
Published
Mar 18, 2025, 7:15 PM
Modified
Jun 17, 2026, 9:05 AM