
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25535 is a Denial of Service (DoS) vulnerability in jsPDF, a JavaScript library for generating PDFs, caused by insufficient validation of GIF image dimensions. Affecting all versions prior to 4.2.0, the flaw allows an unauthenticated remote attacker to trigger excessive memory allocation by supplying a crafted GIF file with oversized width/height header values to the addImage or html methods. The vulnerability was disclosed on February 19, 2026, with a fix released in jsPDF 4.2.0. It carries a CVSS v3.1 score of 7.5 (High) and a CVSS v4.0 score of 8.7 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause lies in the gif_support.js module (specifically the processGIF89A function and the underlying omggif.js GifReader), which reads width and height values directly from the GIF Logical Screen Descriptor header without any sanity checks before allocating a pixel buffer of size width * height. This maps to CWE-770 (Allocation of Resources Without Limits or Throttling) and CWE-400 (Uncontrolled Resource Consumption). An attacker crafts a GIF with extreme dimensions (e.g., 65535×65535) — achievable by hex-editing offsets 0x06 and 0x08 to 0xFFFF — and passes it to addImage() or html(), causing the engine to attempt allocation of a multi-gigabyte pixel buffer. The fix in commit 2e5e156 adds a guard in both decodeAndBlitFrameBGRA and decodeAndBlitFrameRGBA that throws an error if num_pixels exceeds 512×1024×1024 (jsPDF Commit, ZeroXJacks PoC).
Successful exploitation results in out-of-memory (OOM) errors and denial of service, with no impact on confidentiality or integrity. On the client side (browser), the affected tab freezes or crashes, potentially causing loss of unsaved user data. On the server side (Node.js), a single malicious request can exhaust the process heap, crashing the PDF generation service entirely and causing a complete service outage. Downstream IBM products incorporating jsPDF — including IBM API Connect, IBM Cloud Pak for Business Automation, IBM Instana Observability, IBM InfoSphere Optim Archive Viewer, and Cloudera Data Platform with IBM — are also affected (GitHub Advisory, IBM Advisory).
A public proof-of-concept write-up is available from the reporter (ZeroXJacks), detailing the exact hex-editing technique and exploit code needed to craft a malicious GIF (ZeroXJacks PoC). No authentication or user interaction is required, and attack complexity is low, making this straightforward to exploit against any application that passes user-controlled image data to jsPDF. There is no confirmed evidence of active in-the-wild exploitation or threat actor attribution at this time. The EPSS score is approximately 0.042% (24th percentile), indicating a currently low probability of exploitation in the next 30 days. This CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory).
0xFF 0xFF (65535), creating a GIF that claims dimensions of 65535×65535 pixels.addImage() or html() without sanitization.processGIF89A reads the inflated dimensions and calls decodeAndBlitFrameRGBA, which attempts to allocate a Uint8Array of ~4×65535×65535 bytes (~17 GB), causing a RangeError: Invalid array length or OOM crash.RangeError: Invalid array length or JavaScript heap out of memory errors originating from jsPDF's GIF processing code (gif_support.js, omggif.js, or decodeAndBlitFrameRGBA).dmesg showing Out of memory: Kill process for the Node.js service).top, htop, or APM dashboards).The primary remediation is to upgrade jsPDF to version 4.2.0 or later, which adds a pixel-count guard (rejecting images where width × height > 512 × 1024 × 1024) in the GIF decoder (jsPDF Commit, GitHub Advisory). As a workaround where immediate patching is not possible, sanitize all image data or URLs before passing them to addImage(), html(), or other affected methods — specifically, validate and reject GIF files with width or height values exceeding a reasonable maximum (e.g., 10,000 pixels per dimension). IBM has released product-specific advisories and patches for affected products including IBM API Connect, IBM Cloud Pak for Business Automation, IBM Instana Observability, and IBM InfoSphere Optim Archive Viewer (IBM Advisory).
Red Hat opened a tracking bug (Bugzilla #2440992) for the vulnerability shortly after disclosure, classifying it as high severity (Red Hat Bugzilla). IBM issued multiple security bulletins across its product portfolio acknowledging the impact on IBM API Connect, Cloud Pak for Business Automation, Instana Observability, InfoSphere Optim Archive Viewer, and Cloudera Data Platform with IBM, and released corresponding fixes (IBM Advisory). No significant broader community debate or media coverage has been identified beyond standard vulnerability database entries and vendor advisories.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."