chore(deps): update dependency jspdf to v3 [security] - #218
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/npm-jspdf-vulnerability
branch
from
August 15, 2026 03:52
fd4480c to
11e5ed5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.1.1→^3.0.0jspdf vulnerable to Regular Expression Denial of Service (ReDoS)
CVE-2021-23353 / GHSA-57f3-gghm-9mhc
More information
Details
This affects the package jspdf before 2.3.1. ReDoS is possible via the addImage function.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
jsPDF Bypass Regular Expression Denial of Service (ReDoS)
CVE-2025-29907 / GHSA-w532-jxjh-hjhj
More information
Details
Impact
User control of the first argument of the
addImagemethod results in CPU utilization and denial of service.If given the possibility to pass unsanitized image urls to the
addImagemethod, a user can provide a harmful data-url that results in high CPU utilization and denial of service.Other affected methods are:
html,addSvgAsImage.Example payload:
Patches
The vulnerability was fixed in jsPDF 3.0.1. Upgrade to jspdf@>=3.0.1
Workarounds
Sanitize image urls before passing it to the
addImagemethod or one of the other affected methods.Credits
Researcher: Aleksey Solovev (Positive Technologies)
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
parallax/jsPDF (jspdf)
v3.0.1Compare Source
This release fixes two security vulnerabilities:
addImagemethod and the methodshtmlandaddSvgAsImage, which depend onaddImagev3.0.0Compare Source
This major release officially drops support for Internet Explorer and fixes a security vulnerability in the
htmlfunction by updating the optional dependencydompurifyto v3.2.4. There are no other breaking changes.New Contributors
Full Changelog: parallax/jsPDF@v2.5.2...v3.0.0
v2.5.2Compare Source
This release upgrades the Dompurify dependency to 2.5.4 with fixes a vulnerability with high severity: GHSA-mmhx-hmjr-r674.
It also upgrades fflate, core-js, and @babel/runtime to more recent versions.
What's Changed
v2.5.1Compare Source
This release fixes two security related issues.
output('pdfobjectnewwindow')setDisplayMode(CWE-1333)v2.5.0Compare Source
This release adds some minor new features and fixes some bugs, e.g. related to multiline text. Thanks to all contributors!
New Features
getLineWidthfunctionhorizontalScaleoption totextfunctionBugfixes
htmlfunction only rendering on the first invocation per documentcontext2D.closePath(now properly closes the path)textWithLinkfor multiline textlineHeightFactorintextoptions having no effecthtmltypingssavefunction in typings (promise overload)v2.4.0Compare Source
This release brings long awaited improvements to the
htmlfunction and many other bugfixes and improvements. Thanks to all contributors!widthandwindowWidthoptions to thehtmlmethod, which will make correct scaling much easier.marginoption forhtmlmethod and addautoPagingoption with two different modes:'slice'and'text'.setLineDashandlineDashOffsettocontext2d.rowStartandcellStartevents andheaderTextColorproperty to `table' functionsetFontwithfontWeightparameter for the built-in basic fontsaddImageperformance.addImage.getDrawColorfunction to typings.addImage.jsPDFOptionstype in the typings.outputfunction.v2.3.1Compare Source
Small bugfixes. Thanks to all contributors!
getTextDimensions()withmaxWidthsettable()functionaddImagefunctionoutputfunctionv2.3.0Compare Source
A couple of bugfixes, improved font handling and faster compression.
textWithLinkoptions.flagsparameter was ignored by thetextmethod and consequently had the wrong defaults. This lead to garbled characters sometimes and was a regression to 1.5.3.fontFacesoption for thehtmlmethod that allows to add fonts similar CSS@font-facerules (noaddFontcalls required anymore). When supplied, fonts are resolved using the CSS 3 font loading algorithm.v2.2.0Compare Source
Incorporates many of the awesome contributions in context of the Hacktoberfest. Thanks to all the contributors!
maxWidthtext optionImageCompressiontextmethod"Could not load <module>"error messagesConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.