Vulnerability · Published Mar 18, 2025 · Assigned by GitHub_M

CVE-2025-29907jsPDF Bypass Regular Expression Denial of Service (ReDoS)

High 8.7

In plain English

A high-severity uncontrolled resource consumption in jsPDF from parallax. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.7%top 46.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmjspdf3.0.1GHSA-w532-jxjh-hjhj

Affected products (as reported)

VendorProductVersions
parallax jsPDF < 3.0.1

Weakness: CWE-400, CWE-770 · 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

References