Skip to content

[Snyk] Fix for 1 vulnerabilities - #375

Open
TheRedHatter wants to merge 1 commit into
snyk-fix-534ba1af199a066e09b142e5369a7f25from
snyk-fix-df30a82cea14f3764696f5b4df9b5fdd
Open

[Snyk] Fix for 1 vulnerabilities#375
TheRedHatter wants to merge 1 commit into
snyk-fix-534ba1af199a066e09b142e5369a7f25from
snyk-fix-df30a82cea14f3764696f5b4df9b5fdd

Conversation

@TheRedHatter

Copy link
Copy Markdown
Owner

snyk-top-banner

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

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-BRACEEXPANSION-18512280
  710  

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

@TheRedHatter

Copy link
Copy Markdown
Owner Author

Merge Risk: High

This upgrade includes multiple major versions with significant breaking changes, requiring code modifications and environment updates. The most critical changes are in rimraf, mercurius, and fastify-swagger, which necessitate immediate developer attention.

Top 3 Most Impactful Upgrades:

  • rimraf 3.0.2 → 6.1.1 (HIGH): This upgrade introduces several breaking changes. The API is now Promise-based instead of using callbacks, the default export has been removed in favor of named exports (import { rimraf } from 'rimraf'), and version 6 requires Node.js 20 or higher. [2, 5]

    • Recommendation: Update all rimraf calls to use Promises (await rimraf(...)) and change imports from require('rimraf') to import { rimraf } from 'rimraf'. Ensure your environment uses Node.js 20+.
  • mercurius 12.2.0 → 16.7.0 (HIGH): This is a significant upgrade that requires updating the core framework. Version 16 is compatible with Fastify v5, which in turn requires Node.js v20 or higher. [4, 24, 25] This upgrade will likely have cascading effects on other Fastify plugins.

    • Recommendation: This upgrade must be done in conjunction with a migration to Fastify v5 and Node.js v20+. Review the Fastify v5 migration guide for extensive changes to schema validation and other APIs. [24]
  • fastify-swagger 4.17.1 → 5.2.0 (HIGH): The fastify-swagger package is deprecated and has been replaced by @fastify/swagger for schema generation and @fastify/swagger-ui for the user interface. [11, 18] Continuing to use fastify-swagger is not recommended.

    • Recommendation: Replace fastify-swagger with @fastify/swagger and @fastify/swagger-ui. This will require changing the package name in your dependencies and updating the registration and configuration code to match the new API.

Other Major Upgrades:

  • @mercuriusjs/gateway 1.2.0 → 5.0.0 (High): This large version jump aligns with the breaking changes in mercurius, including the requirement for Fastify v5 and Node.js v20+.
  • @fastify/static 7.0.1 → 9.0.0 (Medium):

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

@TheRedHatter

TheRedHatter commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

Snyk checks have failed. 2 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (2)
Open Source Security 0 1 1 0 2 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@TheRedHatter

TheRedHatter commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

Snyk checks have failed. 2 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (2)
Open Source Security 0 1 1 0 2 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedfastify-swagger@​4.17.1 ⏵ 5.2.09910052 -4850 -35100
Updated@​mercuriusjs/​gateway@​1.2.0 ⏵ 5.0.090 -110010081 -1100
Updated@​fastify/​static@​6.12.0 ⏵ 9.0.0100 +181 -210089100
Addedrimraf@​6.1.110010010083100
Updatedbcrypt@​5.1.0 ⏵ 6.0.0100 +9100100 +185100
Updatedmercurius@​12.2.0 ⏵ 16.7.098100 +210087 -3100

View full report

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