Skip to content

[Snyk] Security upgrade pdfjs-dist from 3.4.120 to 4.4.168 - #15

Open
Juice10 wants to merge 1 commit into
masterfrom
snyk-fix-aeb302e1da146ccd7e0338f6966e5a29
Open

Juice10 wants to merge 1 commit into
masterfrom
snyk-fix-aeb302e1da146ccd7e0338f6966e5a29

Conversation

@Juice10

@Juice10 Juice10 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • packages/ui/package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Improper Neutralization
SNYK-JS-GLOB-23745862
  708  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@Juice10

Juice10 commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Merge Risk: High

This is a major version upgrade from v3 to v4 that introduces significant breaking changes, most notably the library's conversion to native JavaScript (ES) modules.

Key Breaking Changes:

  • ES Module Conversion: The package no longer supports CommonJS require() syntax out of the box. You must update your code to use import or dynamic import() statements. Failing to do so will result in an ERR_REQUIRE_ESM error in Node.js environments.
  • SVG Backend Removed: The deprecated SVG rendering backend has been completely removed. If your application relied on SVG rendering, you will need to migrate to the default canvas-based renderer.
  • Other Deprecated APIs Removed: Various other deprecated functions and options have been removed in this major release.

Recommendation:
This upgrade requires code modifications. Developers must refactor how pdfjs-dist is imported to align with ES module syntax. You should also verify that your project is not using the now-removed SVG backend or other deprecated APIs. Thorough testing of PDF rendering functionality is highly recommended after upgrading.

Source: Release notes

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@changeset-bot

changeset-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8d4b6dc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-12-05T02:01:41.087356Z 8d4b6dc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants