Skip to main content

Uncontrolled Resource Consumption

CVE-2025-29907

Severity High
Score 8.7/10

Summary

The jsPDF is a library to generate PDFs in JavaScript. In jspdf versions 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 unsanitized 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`.

  • LOW
  • NETWORK
  • NONE
  • NONE

CWE-400 - Uncontrolled resource consumption

An uncontrolled resource allocation attack (also known as resource exhaustion attack) triggers unauthorized overconsumption of the limited resources in an application, such as memory, file system storage, database connection pool entries, and CPU. This may lead to denial of service for valid users and degradation of the application's functionality as well as that of the host operating system.

Advisory Timeline

  • Published