# CVE-2026-25535: jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 65% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-19T14:34:05.648Z
- Modified: 2026-09-10T03:49:48.422Z
- Also known as: GHSA-67pg-wm7f-q7fj
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- parallax jsPDF: < 4.2.0
- advanced-cluster-security/rhacs-main-rhel8: no versions given (not affected: from 1775594119 before *; from 1775594284 before *)
- jspdf (npm): before 4.2.0
- parall jspdf: before 4.2.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md> (exploit, third-party-advisory, web)
- <https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj> (vendor-advisory, web)
- <https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6> (patch, web)
- <https://github.com/parallax/jsPDF/releases/tag/v4.2.0> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-25535> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2440992> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25535.json>
- <https://access.redhat.com/errata/RHSA-2026:7110> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7128> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25535> (advisory)
- <https://github.com/parallax/jsPDF> (package)

## Sources

- CVE List: [CVE-2026-25535](https://www.cve.org/CVERecord?id=CVE-2026-25535), CVE Terms of Use, modified 2026-09-07
- GitHub Advisory Database: [GHSA-67pg-wm7f-q7fj](https://github.com/advisories/GHSA-67pg-wm7f-q7fj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25535](https://nvd.nist.gov/vuln/detail/CVE-2026-25535), Public domain, modified 2026-08-18

---

Page: https://cve.day/CVE-2026-25535 · Whole record: https://cve.day/CVE-2026-25535.json · Rebuilt by cve.day 2026-11-25T22:59:14.196Z
