{"cve":"CVE-2026-25535","nvd":{"published":"2026-02-19T15:16:12.130","modified":"2026-08-18T12:17:45.263","status":"Modified","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.","cvss_v4":{"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","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400","CWE-770"],"references":["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://access.redhat.com/errata/RHSA-2026:7110"],"products":["parall:jspdf"],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-25535","score":0.0084,"percentile":0.57856,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-67pg-wm7f-q7fj","url":"https://osv.dev/vulnerability/GHSA-67pg-wm7f-q7fj","summary":"jsPDF Affected by Client-Side/Server-Side Denial of Service via Malicious GIF Dimensions","modified":"2026-09-10T03:49:48.422831128Z","packages":[{"ecosystem":"npm","name":"jspdf","purl":"pkg:npm/jspdf","ranges":["<4.2.0"],"fixed":["4.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}