jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| parallax | jsPDF | before 4.2.0 | 4.2.0 | Patch available | CNA |
| — | jspdf (npm) | before 4.2.0 | 4.2.0 | Patch available | GHSA-67pg-wm7f-q7fj |
- jsPDF Vendorparallax Affected before 4.2.0 Fixed in 4.2.0 Patch available CNA
- jspdf (npm) Vendor— Affected before 4.2.0 Fixed in 4.2.0 Patch available GHSA-67pg-wm7f-q7fj
Remediation
- Fix · CNA jsPDF (parallax) Fixed in 4.2.0
- Fix · GHSA-67pg-wm7f-q7fj jspdf (npm) Fixed in 4.2.0 Advisory →
Red Hat 2 advisories
- RHSA-2026:7128 Released 2026-04-08 · Red Hat rating ImportantRHACS 4.9.5 security and bug fix update
- Red Hat Advanced Cluster Security 4.9 registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-rhel8-operator, registry.redhat.io/advanced-cluster-security/rhacs-roxctl-rhel8 +1
- RHSA-2026:7110 Released 2026-04-08 · Red Hat rating ImportantRHACS 4.8.10 security and bug fix update
- Red Hat Advanced Cluster Security 4.8 registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8, registry.redhat.io/advanced-cluster-security/rhacs-rhel8-operator, registry.redhat.io/advanced-cluster-security/rhacs-roxctl-rhel8 +1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Security 4.8 | Fixed | RHSA-2026:7110 |
| Red Hat Advanced Cluster Security 4.9 | Fixed | RHSA-2026:7128 |
Not affected: 2 products
- Red Hat Advanced Cluster Security 4.8
- Red Hat Advanced Cluster Security 4.9
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25535
- 2026-10-03 Alias added: GHSA-67pg-wm7f-q7fj
References
Advisory 2
More parallax Jspdf vulnerabilities
- TI-2025-35693 jsPDF Parsing of Corrupt PNGs Leads to Potential Denial of Service (DoS) CVSS 4.0HIGH 8.7
- TI-2025-21292 jsPDF Bypass Regular Expression Denial of Service (ReDoS) CVSS 4.0HIGH 8.7
- TI-2025-41976 jsPDF has Local File Inclusion/Path Traversal vulnerability CVSS 4.0CRITICAL 9.2
- TI-2026-24484 jsPDF has HTML Injection in New Window paths CVSS 3.1CRITICAL 9.6
- TI-2026-20823 jsPDF has PDF Object Injection via Unsanitized Input in addJS Method CVSS 3.1HIGH 8.8
- TI-2026-19451 jsPDF Affected by Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder CVSS 4.0HIGH 8.7
Sources
- CVE-2026-25535 · CVE Program
- CVE-2026-25535 · NVD
- FIRST EPSS
- GHSA-67pg-wm7f-q7fj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-25535 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences