CVE-2025-29907
March 18, 2025
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
jspdf (CDN_JS):
Affected version(s) >=0.9.0rc1 <3.0.1Fix Suggestion:
Update to version 3.0.1jspdf (CDN_JS):
Affected version(s) >=0.9.0 <3.0.1Fix Suggestion:
Update to version 3.0.1https://github.com/parallax/jsPDF.git (GITHUB):
Affected version(s) >=v0.9.0 <v3.0.1Fix Suggestion:
Update to version v3.0.1jspdf (NPM):
Affected version(s) >=1.0.272 <3.0.1Fix Suggestion:
Update to version 3.0.1Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.36