Skip to content

[Snyk] Fix for 3 vulnerabilities#161

Open
maniator wants to merge 1 commit intonextfrom
snyk-fix-2252797a2c3cfa987b9e7280d050fc01
Open

[Snyk] Fix for 3 vulnerabilities#161
maniator wants to merge 1 commit intonextfrom
snyk-fix-2252797a2c3cfa987b9e7280d050fc01

Conversation

@maniator
Copy link
Owner

snyk-top-banner

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

Snyk changed the following file(s):

  • docs/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 Directory Traversal
SNYK-JS-TAR-15032660
  693  
medium severity Prototype Pollution
SNYK-JS-LODASH-15053838
  631  
medium severity Directory Traversal
SNYK-JS-TAR-15127355
  596  

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:

🦉 Prototype Pollution
🦉 Directory Traversal

Copilot AI review requested due to automatic review settings January 29, 2026 07:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This is a Snyk-generated pull request that attempts to fix 3 security vulnerabilities (directory traversal and prototype pollution) by upgrading three dependencies in the docs package. However, the PR has critical issues that prevent it from being safely merged.

Changes:

  • Upgraded lodash from ^4.17.15 to ^4.17.23 to fix prototype pollution vulnerability
  • Upgraded next from ^9.5.0 to ^10.0.6 to address vulnerabilities in transitive dependencies
  • Upgraded webpack from ^4.41.0 to ^5.0.0 to address directory traversal vulnerabilities in tar (a transitive dependency)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"stylis": "^3.5.4",
"webfontloader": "^1.6.28",
"webpack": "^4.41.0",
"webpack": "^5.0.0",
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Upgrading webpack from version 4 to version 5 is a major breaking change that requires configuration updates in next.config.js. Specifically, the webpack 5 upgrade has deprecated the node.fs = 'empty' configuration option used in docs/next.config.js:96-98. This option should be replaced with resolve.fallback: { fs: false } for webpack 5 compatibility. Without this change, the build will fail or produce warnings.

Suggested change
"webpack": "^5.0.0",
"webpack": "^4.0.0",

Copilot uses AI. Check for mistakes.
"marked": "^1.0.0",
"material-ui-popup-state": "^1.4.1",
"next": "^9.5.0",
"next": "^10.0.6",
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Upgrading Next.js from version 9.5 to 10.0 is a major version upgrade with breaking changes. Next.js 10 introduced changes to the build output, image optimization, and other features. While Next.js 10 does support webpack 5, it requires opting in via the future.webpack5: true configuration option in next.config.js. Without this configuration or without migrating to the default webpack 5 settings when they became default in later versions, the build may fail. Additionally, the PR description indicates that yarn.lock failed to update, which means dependencies may not be properly resolved.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

3 participants