Skip to content

chore(deps): bump jspdf from 3.0.3 to 4.2.0#138

Open
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/jspdf-4.2.0
Open

chore(deps): bump jspdf from 3.0.3 to 4.2.0#138
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/jspdf-4.2.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 20, 2026

Bumps jspdf from 3.0.3 to 4.2.0.

Release notes

Sourced from jspdf's releases.

v4.2.0

This release fixes three security issues.

What's Changed

New Contributors

Full Changelog: parallax/jsPDF@v4.1.0...v4.2.0

v4.1.0

This release fixes several security issues.

What's Changed

Full Changelog: parallax/jsPDF@v4.0.0...v4.1.0

v4.0.0

This release fixes a critical path traversal/local file inclusion security vulnerability in the jsPDF Node.js build. File system access is now restricted by default and can be enabled by either using node's --permission flag or the new jsPDF.allowFsRead property.

There are no other breaking changes.

v3.0.4

This release includes a bunch of bugfixes. Thanks to all contributors!

What's Changed

New Contributors

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by cubic

Upgrade jsPDF to 4.2.0 in Portal and Extensions to address multiple security vulnerabilities and keep PDF exports stable.

  • Dependencies

    • Bumped jspdf from 3.0.3 to 4.2.0 in apps/extensions and apps/portal.
  • Migration

    • Browser usage: no changes expected; please re-check key PDF export flows.
    • Node usage (if applicable): file system access is now disabled by default. Enable it with Node’s --permission flag or set jsPDF.allowFsRead when needed.

Written for commit 0af4d39. Summary will update on new commits.

Bumps [jspdf](https://github.com/parallax/jsPDF) from 3.0.3 to 4.2.0.
- [Release notes](https://github.com/parallax/jsPDF/releases)
- [Changelog](https://github.com/parallax/jsPDF/blob/master/RELEASE.md)
- [Commits](parallax/jsPDF@v3.0.3...v4.2.0)

---
updated-dependencies:
- dependency-name: jspdf
  dependency-version: 4.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Feb 20, 2026
@cla-assistant
Copy link

cla-assistant bot commented Feb 20, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 20, 2026

Greptile Summary

This PR upgrades jspdf from version 3.0.3 to 4.2.0, a major version bump that includes critical security fixes addressing multiple vulnerabilities:

  • v4.2.0: Fixes PDF Injection in AcroForm RadioButton children allowing arbitrary JavaScript execution, Client-Side/Server-Side DoS via malicious GIF dimensions, and PDF Object Injection via unsanitized input in addJS method
  • v4.1.0: Fixes PDF Injection in AcroForm module, Stored XMP Metadata Injection, Shared State Race Condition in addJS method, and DoS via unvalidated BMP dimensions
  • v4.0.0: Fixes critical path traversal/local file inclusion security vulnerability in Node.js build

The codebase uses jspdf for basic PDF generation from images/canvas (no AcroForms, no addJS calls, no file system operations). Usage is limited to:

  • Creating PDFs from images with addImage()
  • Setting orientation and dimensions
  • Outputting as blob

No breaking API changes affect this codebase's usage pattern.

Confidence Score: 5/5

  • This PR is safe to merge - it's a security-focused dependency update with no breaking changes affecting current usage
  • The update addresses multiple critical security vulnerabilities without introducing breaking changes for this codebase's usage pattern. The application only uses basic PDF creation features (jsPDF constructor, addImage(), output()), none of the vulnerable features (AcroForms, addJS(), file system access). The major version bump (3.x to 4.x) is primarily for the security fixes rather than API changes.
  • No files require special attention

Important Files Changed

Filename Overview
apps/extensions/package.json Updates jspdf dependency from ^3.0.2 to ^4.2.0 to incorporate critical security fixes
apps/portal/package.json Updates jspdf dependency from ^3.0.2 to ^4.2.0 to incorporate critical security fixes
pnpm-lock.yaml Lock file updated with jspdf@4.2.0 and its transitive dependencies including security patches

Last reviewed commit: 0af4d39

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@sonarqubecloud
Copy link

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants