What’s Vulnerable › Vulnerabilities
CVE-2026-24133: jsPDF Affected by Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-02-02 · updated 2026-06-17
- Weakness: CWE-770
Description
jsPDF is a library to generate PDFs in JavaScript. Prior to 4.1.0, user control of the first argument of the addImage method results in denial of service. If given the possibility to pass unsanitized image data or URLs to the addImage method, a user can provide a harmful BMP file that results in out of memory errors and denial of service. Harmful BMP files have large width and/or height entries in their headers, which lead to excessive memory allocation. The html method is also affected. The vulnerability has been fixed in jsPDF@4.1.0.
Affected products
- parallax jsPDF: before 4.1.0 — fixed in 4.1.0
How to fix
Upgrade to a fixed version: parallax jsPDF 4.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/parallax/jsPDF/commit/ae4b93f76d8fc1baa5614bd5fdb5d174c3b85f0d
- https://github.com/parallax/jsPDF/releases/tag/v4.1.0
- https://github.com/parallax/jsPDF/security/advisories/GHSA-95fx-jjr5-f39c
Get alerted when CVE-2026-24133 or the next vulnerability affects your stack