Skip to content

chore(deps): bump jspdf from 3.0.3 to 4.0.0#131

Closed
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/npm_and_yarn/jspdf-4.0.0
Closed

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jan 5, 2026

Bumps jspdf from 3.0.3 to 4.0.0.

Release notes

Sourced from jspdf's releases.

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

Full Changelog: parallax/jsPDF@v3.0.3...v3.1.0

Commits
  • e6cf03d 4.0.0
  • a688c8f restrict file system access in node build (#3931)
  • a504e97 3.0.4
  • de802ab Fix Incorrect Typing for Margins in the TableConfig Interface Definition (#3816)
  • 87162d1 chore: bump checkout, setup-node, and stale actions (#3907)
  • e7dc622 Fix: Context2d font regex too restrictive ( #3904 ) (#3906)
  • e080935 Do not add pages dynamically unless autoPaging is enabled (#3915)
  • c768910 add package.json exports field (#3903)
  • c10d90c Fix API.internal.pages not being updated when restoring a RenderTarget ( #389...
  • 2db3d9d fix font list cache invalidation issue in context2d module (#3891)
  • Additional commits viewable in compare view

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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.0.0 to fix a Node.js path traversal vulnerability and include recent bug fixes. No app code changes; browser usage should behave the same.

  • Dependencies

    • Bumped jspdf to 4.0.0 in apps/extensions and apps/portal.
  • Migration

    • If you use jsPDF in Node, file system reads are blocked by default. Enable via Node’s --permission flag or set jsPDF.allowFsRead.

Written for commit 837fd42. Summary will update on new commits.

Bumps [jspdf](https://github.com/parallax/jsPDF) from 3.0.3 to 4.0.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.0.0)

---
updated-dependencies:
- dependency-name: jspdf
  dependency-version: 4.0.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 Jan 5, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 5, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Jan 5, 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.

1 similar comment
@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Jan 5, 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.

Copy link
Copy Markdown

@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

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jan 5, 2026

Greptile Summary

This PR updates jspdf from version 3.0.3 to 4.0.0, addressing a critical path traversal/local file inclusion security vulnerability (GHSA-f8cm-6447-x5h2) in the Node.js build.

Key changes:

  • Security fix: File system access is now restricted by default in Node.js environments
  • No breaking API changes detected - existing usage patterns remain compatible
  • Current codebase usage is browser-only (image-to-PDF conversion using new jsPDF(), addImage(), and output('blob')), so the security fix does not impact this application
  • Transitive dependencies updated: core-js, dompurify, esquery

Verification needed:

  • Run existing tests to ensure PDF generation functionality still works
  • Test PDF export features in both portal and extensions apps

Confidence Score: 5/5

  • This PR is safe to merge - it's a security patch with no breaking changes
  • This is a straightforward dependency security update. The version bump from 3.x to 4.0.0 includes only a security fix with no breaking API changes. The codebase uses jspdf exclusively for browser-based PDF generation (converting images/canvas to PDF), which is unaffected by the Node.js file system security changes. All usage patterns (constructor, addImage, output methods) remain compatible.
  • No files require special attention - verify tests pass

Important Files Changed

Filename Overview
apps/extensions/package.json Updated jspdf from ^3.0.2 to ^4.0.0 to fix critical security vulnerability
apps/portal/package.json Updated jspdf from ^3.0.2 to ^4.0.0 to fix critical security vulnerability
pnpm-lock.yaml Lock file updated with jspdf 4.0.0 and transitive dependency updates

Sequence Diagram

sequenceDiagram
    participant D as Dependabot
    participant PM as pnpm
    participant PJ as package.json
    participant L as pnpm-lock.yaml
    participant App as Application

    D->>PJ: Detect security vulnerability
    D->>PJ: Update jspdf: ^3.0.2 → ^4.0.0
    D->>PM: Trigger dependency resolution
    PM->>L: Update resolved version: 3.0.3 → 4.0.0
    PM->>L: Update transitive dependencies
    Note over L: core-js, dompurify, esquery
    App->>App: Uses jspdf for PDF generation
    Note over App: Browser-only usage<br/>Not affected by Node.js security fix
Loading

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jan 5, 2026

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Feb 20, 2026

Superseded by #138.

@dependabot dependabot Bot closed this Feb 20, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/jspdf-4.0.0 branch February 20, 2026 12:44
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