CVE-2026-25535: CWE-400: Uncontrolled Resource Consumption in parallax jsPDF
jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.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 GIF file that results in out of memory errors and denial of service. Harmful GIF files have large width and/or height entries in their headers, which lead to excessive memory allocation. Other affected methods are: `html`. The vulnerability has been fixed in jsPDF 4.2.0. As a workaround, sanitize image data or URLs before passing it to the addImage method or one of the other affected methods.
AI Analysis
Technical Summary
jsPDF versions prior to 4.2.0 contain a vulnerability (CWE-400, CWE-770) where the addImage and html methods accept unsanitized user input as their first argument. An attacker can exploit this by supplying a specially crafted GIF file with invalid width and height header values, causing the application to allocate excessive memory. This uncontrolled resource consumption results in denial of service via out-of-memory conditions and application crashes. The vulnerability has been addressed and fixed in version 4.2.0 of jsPDF. Workarounds include sanitizing or validating image data or URLs before use in the affected methods.
Potential Impact
The vulnerability allows an attacker to cause denial of service by forcing the application to allocate excessive memory, leading to out-of-memory errors and crashes. There is no impact on confidentiality or integrity. The severity is rated high with a CVSS score of 8.7. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in jsPDF version 4.2.0. Users should upgrade to this version to fully mitigate the vulnerability. As a workaround, sanitize or validate image data and URLs before passing them to the addImage or html methods, ensuring width and height header values do not exceed safe limits.
CVE-2026-25535: CWE-400: Uncontrolled Resource Consumption in parallax jsPDF
Description
jsPDF is a library to generate PDFs in JavaScript. Prior to 4.2.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 GIF file that results in out of memory errors and denial of service. Harmful GIF files have large width and/or height entries in their headers, which lead to excessive memory allocation. Other affected methods are: `html`. The vulnerability has been fixed in jsPDF 4.2.0. As a workaround, sanitize image data or URLs before passing it to the addImage method or one of the other affected methods.
CVSS v4.0
Score 8.7high
Affected software
parallax
jsPDF
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
jsPDF versions prior to 4.2.0 contain a vulnerability (CWE-400, CWE-770) where the addImage and html methods accept unsanitized user input as their first argument. An attacker can exploit this by supplying a specially crafted GIF file with invalid width and height header values, causing the application to allocate excessive memory. This uncontrolled resource consumption results in denial of service via out-of-memory conditions and application crashes. The vulnerability has been addressed and fixed in version 4.2.0 of jsPDF. Workarounds include sanitizing or validating image data or URLs before use in the affected methods.
Potential Impact
The vulnerability allows an attacker to cause denial of service by forcing the application to allocate excessive memory, leading to out-of-memory errors and crashes. There is no impact on confidentiality or integrity. The severity is rated high with a CVSS score of 8.7. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in jsPDF version 4.2.0. Users should upgrade to this version to fully mitigate the vulnerability. As a workaround, sanitize or validate image data and URLs before passing them to the addImage or html methods, ensuring width and height header values do not exceed safe limits.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-02T19:59:47.374Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-25535","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","vendor":"Red Hat"}]
Threat ID: 6997264f521539184371324a
Added to database: 02/19/2026, 15:03:43 UTC
Last enriched: 08/17/2026, 13:12:55 UTC
Last updated: 09/11/2026, 19:42:47 UTC
Views: 625
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.