{"id":"CVE-2026-25535","published":"2026-02-19T14:34:05Z","modified":"2026-09-07T12:04:56Z","title":"jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00859,"percentile":0.59354,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-67pg-wm7f-q7fj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/commit/2e5e156e284d92c7d134bce97e6418756941d5e6","tags":["x_refsource_MISC"]},{"url":"https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-25535.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v4.2.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25535","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2440992","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25535.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":11.87},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 4.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-19T16:03:04.920714Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<4.2.0"],"patched":["4.2.0"],"from":["GHSA-67pg-wm7f-q7fj"],"provenance":"source"}],"summary":{"text":"jsPDF, a JavaScript library for generating PDFs, is affected by a flaw in its handling of image input: when the first argument of the addImage method (and the html method) is user-controlled, unsanitized image data can be passed in. An attacker who can supply such input over the network, without authentication or user interaction, can submit a crafted GIF whose header declares excessively large width and/or height, causing excessive memory allocation that leads to out-of-memory errors and denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:28Z"},"euvd":{"id":"EUVD-2026-8095","exploited":false,"provenance":"source"}}