Skip to content

[Snyk] Fix for 2 vulnerabilities - #838

Open
pushkala-datastax wants to merge 1 commit into
2.10_dsfrom
snyk-fix-3c38b7c28dc88d5e86b1ad2cf936a32e
Open

pushkala-datastax wants to merge 1 commit into
2.10_dsfrom
snyk-fix-3c38b7c28dc88d5e86b1ad2cf936a32e

Conversation

@pushkala-datastax

Copy link
Copy Markdown
Collaborator

snyk-top-banner

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

Snyk changed the following file(s):

  • site2/website-next/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Arbitrary Code Injection
SNYK-JS-GRAYMATTER-20532010
  746  
medium severity Improper Validation of Specified Quantity in Input
SNYK-JS-SPRINTFJS-20532016
  738  

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:

🦉 Arbitrary Code Injection

@pushkala-datastax

Copy link
Copy Markdown
Collaborator Author

Merge Risk: High

This is a major upgrade from Docusaurus v2 to v3, which includes significant breaking changes that require developer action. The most impactful changes are related to dependencies and content rendering.

Key Breaking Changes:

  • Node.js Requirement: Docusaurus v3 requires Node.js version 18.0 or higher.
  • MDX v3 Upgrade: The upgrade from MDX v1 to v3 is the most significant change. MDX parsing is now much stricter, which can cause builds to fail or content to render differently. You should run npx docusaurus-mdx-checker to identify files that need to be updated.
  • React 18: The framework has been upgraded from React 17 to 18.
  • TypeScript 5: Docusaurus v3 now requires TypeScript v5.0 or higher.
  • Admonition Change: The :::caution admonition is deprecated and should be replaced with :::warning.
  • Theme Customizations: Core theme components have been refactored. If you have customized components ("swizzled"), you may need to update them.

Package-Specific Notes:

  • @docusaurus/preset-classic: As the core preset, it inherits all the breaking changes listed above.
  • @docusaurus/plugin-client-redirects: While there are no specific breaking changes cited for this plugin, it is part of the v3 ecosystem. A new feature allows it to support fully qualified URLs.

Source: Docusaurus v3 Announcement, Docusaurus v3 Upgrade Guide

Recommendation: This upgrade requires careful planning. Developers must verify the Node.js version, audit all MDX content for compatibility with the stricter parser, and review any custom components for compatibility with React 18 and updated theme components.

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

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