{"id":"CVE-2025-29907","published":"2025-03-18T18:40:57Z","modified":"2025-03-18T19:02:49Z","title":"jsPDF Bypass Regular Expression Denial of Service (ReDoS)","vendor":"parallax","product":"jsPDF","tier":"tail","description":{"text":"jsPDF is a library to generate PDFs in JavaScript. Prior to 3.0.1, user control of the first argument of the addImage method results in CPU utilization and denial of service. If given the possibility to pass unsanitised image urls to the addImage method, a user can provide a harmful data-url that results in high CPU utilization and denial of service. Other affected methods are html and addSvgAsImage. The vulnerability was fixed in jsPDF 3.0.1.","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.00699,"percentile":0.54056,"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-w532-jxjh-hjhj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parallax/jsPDF/commit/b167c43c27c466eb914b927885b06073708338df","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":10.81},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"parallax","affectedVersions":[{"vendor":"parallax","product":"jsPDF","versions":["< 3.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-18T18:58:49.411779Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jspdf","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-w532-jxjh-hjhj"],"provenance":"source"}],"summary":{"text":"jsPDF, a JavaScript library for generating PDFs, contains a regular expression denial-of-service flaw in its addImage method (and the related html and addSvgAsImage methods) before version 3.0.1, where a crafted data URL passed as the first argument causes high CPU utilization. An attacker who can supply unsanitised image URLs to these methods can trigger a denial of service with no authentication, no user interaction, and no special configuration required, provided the application passes such input through to jsPDF.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:54Z"},"euvd":{"id":"EUVD-2025-6699","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-parallax-jspdf-cve-2025-29907","children":[{"from":"CVE-2025-29907","to":"CVE-2025-57810","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jspdf","fromFixed":"3.0.1","toFixed":"3.0.2","daysApart":161},{"kind":"same-code","provenance":"machine","files":["src/modules/addimage.js"],"commits":["https://github.com/parallax/jsPDF/commit/b167c43c27c466eb914b927885b06073708338df","https://github.com/parallax/jsPDF/commit/4cf3ab619e565d9b88b4b130bff901b91d8688e9"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.74,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2020-7690","published":"2020-07-06","fixed":"2.0.0","kev":false},{"cve":"CVE-2020-7691","published":"2020-07-06","fixed":"2.0.0","kev":false},{"cve":"CVE-2021-23353","published":"2021-03-09","fixed":"2.3.1","kev":false},{"cve":"CVE-2025-29907","published":"2025-03-18","fixed":"3.0.1","kev":false},{"cve":"CVE-2025-57810","published":"2025-08-26","fixed":"3.0.2","kev":false},{"cve":"CVE-2025-68428","published":"2026-01-05","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-24040","published":"2026-02-02","fixed":"4.1.0","kev":false}],"package":"npm:jspdf"}}