CVE-2026-25535
published high CVSS 4.0 · 8.7jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| parallax | — | jsPDF< 4.2.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | advanced-cluster-security/rhacs-main-rhel8Red Hat Advanced Cluster Security 4.8 · 1775594119 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | advanced-cluster-security/rhacs-main-rhel8Red Hat Advanced Cluster Security 4.9 · 1775594284 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
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.
A flaw was found in jsPDF. The addImage and html methods accept user input in their first argument without proper sanitization. An attacker can supply a specially crafted GIF file, specifically with invalid width and height header values, forcing the application to allocate an excessive amount of memory, leading to an out-of-memory condition, causing an application crash and denial of service.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| parallax | jsPDF | < 4.2.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Advanced Cluster Security 4.8 | 1775594119 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Advanced Cluster Security 4.9 | 1775594284 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
Weaknesses
3- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
- CWE-770 Allocation of Resources Without Limits or Throttling
References
9- https://access.redhat.com/errata/RHSA-2026:7110
- https://access.redhat.com/errata/RHSA-2026:7128
- https://access.redhat.com/security/cve/CVE-2026-25535
- RHBZ#2440992 https://bugzilla.redhat.com/show_bug.cgi?id=2440992
- https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md
- https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6
- https://github.com/parallax/jsPDF/releases/tag/v4.2.0
- https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25535.json
Provider assertions
3GitHub_M · cna
jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions
redhat-SADP · adp
jsPDF: denial of service via malicious GIF dimensions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fd04b18a4395fe4763668c7017abb1997e53a91ce5942bb655158e526261f313
- Ingested
- 23 Sep 2026, 09:06:52 UTC
- Source record
- Official CVE record