Skip to content

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

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

Juice10 wants to merge 1 commit into
masterfrom
snyk-fix-3ff39364a0533ab99dffe5b377006221

Conversation

@Juice10

@Juice10 Juice10 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to fix 15 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
high severity Improper Handling of Highly Compressed Data (Data Amplification)
SNYK-JS-TAR-23314599
  828  
high severity Symlink Attack
SNYK-JS-TAR-23314544
  753  
high severity Interpretation Conflict
SNYK-JS-TAR-23314552
  753  
high severity CRLF Injection
SNYK-JS-TAR-23314556
  753  
high severity Symlink Attack
SNYK-JS-TAR-23314562
  753  
high severity Symlink Attack
SNYK-JS-TAR-23314571
  753  
high severity Insufficient Verification of Data Authenticity
SNYK-JS-TAR-23314614
  753  
high severity Insufficient Verification of Data Authenticity
SNYK-JS-TAR-23314617
  753  
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-TAR-23314539
  748  
high severity Improper Neutralization of Null Byte or NUL Character
SNYK-JS-TAR-23314548
  748  
high severity Improper Neutralization of Null Byte or NUL Character
SNYK-JS-TAR-23314577
  748  
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-TAR-23314602
  748  
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-TAR-23314605
  748  
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-TAR-23314608
  748  
high severity Inefficient Algorithmic Complexity
SNYK-JS-TAR-23314611
  748  

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:

🦉 Allocation of Resources Without Limits or Throttling
🦉 Symlink Attack
🦉 Allocation of Resources Without Limits or Throttling


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

@Juice10

Juice10 commented Dec 3, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-03T02:38:59.754488Z da72672 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.

@changeset-bot

changeset-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: da72672

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

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