Skip to content

[Snyk] Fix for 2 vulnerabilities#95

Open
q1blue wants to merge 1 commit intomainfrom
snyk-fix-144da8ebe4d8e33f59cd28e88f82c85e
Open

[Snyk] Fix for 2 vulnerabilities#95
q1blue wants to merge 1 commit intomainfrom
snyk-fix-144da8ebe4d8e33f59cd28e88f82c85e

Conversation

@q1blue
Copy link
Contributor

@q1blue q1blue commented Feb 10, 2026

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):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-TRIM-1017038
  169  
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITREQUEST-8730853
  67  

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:

🦉 Regular Expression Denial of Service (ReDoS)


EntelligenceAI PR Summary

This PR upgrades the project to Docusaurus v3 and updates the GitHub API client to their latest major versions.

  • Upgraded @docusaurus/preset-classic from v2.4.1 to v3.0.0 in package.json
  • Upgraded octokit from v2.0.14 to v3.0.0 in package.json
  • Updated entire Babel ecosystem, Webpack, and build utilities in package-lock.json for compatibility
  • Enhanced Algolia search with new client packages (A/B testing, ingestion, insights) and version bumps to algoliasearch and @docsearch/react

@gemini-code-assist
Copy link

Summary of Changes

Hello @q1blue, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request, automatically generated by Snyk, focuses on enhancing the project's security posture by resolving two identified Regular Expression Denial of Service (ReDoS) vulnerabilities. The changes involve updating specific npm package versions to incorporate the necessary security patches, thereby mitigating potential risks associated with these vulnerabilities.

Highlights

  • Security Vulnerability Resolution: This pull request addresses two critical Regular Expression Denial of Service (ReDoS) vulnerabilities, identified as SNYK-JS-TRIM-1017038 (high severity) and SNYK-JS-OCTOKITREQUEST-8730853 (medium severity), by updating affected npm dependencies.
  • Dependency Version Upgrades: Key dependencies @docusaurus/preset-classic and octokit have been upgraded to their latest major versions (^3.0.0), which include the necessary security fixes.
Changelog
  • package-lock.json
    • Updated locked versions for @docusaurus/preset-classic and octokit to reflect the new major versions.
  • package.json
    • Upgraded @docusaurus/preset-classic from ^2.4.1 to ^3.0.0.
    • Upgraded octokit from ^2.0.14 to ^3.0.0.
Activity
  • Snyk automatically created this pull request to propose fixes for identified vulnerabilities.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
crystal-alchemist-blue-block-1596 54fcbd1 Feb 10 2026, 01:06 AM

@socket-security
Copy link

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​docusaurus/​preset-classic@​2.4.1 ⏵ 3.0.0991007095 -2100

View full report

@socket-security
Copy link

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
License policy violation: npm caniuse-lite under CC-BY-4.0

License: CC-BY-4.0 - the applicable license policy does not allow this license (4) (npm metadata)

License: CC-BY-4.0 - the applicable license policy does not allow this license (4) (package/LICENSE)

License: CC-BY-4.0 - the applicable license policy does not allow this license (4) (package/package.json)

From: package-lock.jsonnpm/@svgr/webpack@6.5.1npm/@docusaurus/preset-classic@3.0.0npm/@docusaurus/core@2.4.1npm/@docusaurus/plugin-content-docs@2.4.1npm/caniuse-lite@1.0.30001769

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/caniuse-lite@1.0.30001769. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm html-minifier-terser is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: package-lock.jsonnpm/@docusaurus/preset-classic@3.0.0npm/html-minifier-terser@7.2.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/html-minifier-terser@7.2.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request from Snyk fixes two security vulnerabilities by upgrading dependencies. However, as noted in the Snyk metadata (isBreakingChange:true), the upgrades are major version bumps that introduce breaking changes. The update to @docusaurus/preset-classic from v2 to v3 will break your build because it requires React 18, while your project uses React 17. The update to octokit from v2 to v3 is also a major change and may require code modifications. These breaking changes must be addressed for the application to function correctly.

"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/plugin-ideal-image": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@docusaurus/preset-classic": "^3.0.0",

Choose a reason for hiding this comment

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

critical

The upgrade of @docusaurus/preset-classic to v3.0.0 is a major version bump that introduces breaking changes. Docusaurus v3 requires React 18, but this project's package.json specifies React 17 ("react": "^17.0.1" on line 30). This version mismatch will cause the application to break. To fix this, react and react-dom must also be upgraded to ^18.0.0, and any other breaking changes from the Docusaurus v3 migration need to be addressed.

"file-loader": "^6.2.0",
"nvm": "^0.0.4",
"octokit": "^2.0.14",
"octokit": "^3.0.0",

Choose a reason for hiding this comment

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

high

This major version upgrade for octokit from v2 to v3 likely introduces breaking changes. Any code using octokit may need to be updated to be compatible with the new version's API. It is recommended to consult the octokit release notes for details on breaking changes and update the application code accordingly.

Copy link

@entelligence-ai-pr-reviews entelligence-ai-pr-reviews bot left a comment

Choose a reason for hiding this comment

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

Walkthrough

This PR performs a major version upgrade of the project's core dependencies, migrating from Docusaurus v2 to v3 and updating the GitHub API client. The @docusaurus/preset-classic package is upgraded from ^2.4.1 to ^3.0.0, while octokit is bumped from ^2.0.14 to ^3.0.0. These major version updates are accompanied by comprehensive dependency updates in package-lock.json, including the entire Babel ecosystem, Webpack, and build utilities to ensure compatibility. The Algolia search integration has been significantly enhanced with new client packages for A/B testing, ingestion, and insights, alongside version bumps to algoliasearch and @docsearch/react. These changes modernize the documentation framework and improve build stability and search functionality.

Changes

File(s) Summary
package.json Upgraded @docusaurus/preset-classic from ^2.4.1 to ^3.0.0 and octokit from ^2.0.14 to ^3.0.0.
package-lock.json Updated all dependencies to support Docusaurus v3 migration, including Babel ecosystem, Webpack, and build utilities; enhanced Algolia search integration with new client packages for A/B testing, ingestion, and insights; bumped algoliasearch and @docsearch/react versions.

Sequence Diagram

This diagram shows the interactions between components:

sequenceDiagram
    title Docusaurus v3 and Octokit v3 Integration Flow

    participant U as User/Browser
    participant DC as Docusaurus Core (v3)
    participant ML as MDX Loader (MDX v3)
    participant PR as Prism React Renderer (v2)
    participant AS as Algolia Search (v5)
    participant OK as Octokit (v3)
    participant GH as GitHub API

    Note over DC, ML: Build Phase: Content Processing
    
    DC->>ML: loadContent(file.mdx)
    activate ML
    ML->>ML: Parse MDX v3 Syntax
    ML->>PR: Highlight Code Blocks
    activate PR
    PR-->>ML: Tokenized Code
    deactivate PR
    ML-->>DC: Compiled Component / AST
    deactivate ML

    Note over U, AS: Runtime Phase: Search Interaction

    U->>AS: Input Search Query
    activate AS
    AS->>AS: Initialize v5 Search Client
    AS->>AS: Process Autocomplete Logic
    AS-->>U: Display Search Results
    deactivate AS

    Note over DC, GH: API Phase: GitHub Integration

    DC->>OK: request(endpoint, params)
    activate OK
    
    alt Authentication Required
        OK->>OK: Handle v3 Auth Logic
    else Unauthenticated
        OK->>OK: Prepare Public Request
    end

    OK->>GH: HTTPS REST/GraphQL Call
    activate GH
    GH-->>OK: JSON Response
    deactivate GH
    
    OK-->>DC: Formatted Data
    deactivate OK

    Note over DC: Build Completion & Static Generation
Loading

▶️AI Code Reviews for VS Code, Cursor, Windsurf
Install the extension

Note for Windsurf Please change the default marketplace provider to the following in the windsurf settings:

Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery

Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items

Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts below

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @entelligenceai + *your message*
Example: @entelligenceai Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @entelligenceai + *feedback*
Example: @entelligenceai Do not comment on `save_auth` function !

Also you can trigger various commands with the bot by doing
@entelligenceai command

The current supported commands are

  1. config - shows the current config
  2. retrigger_review - retriggers the review

More commands to be added soon.

"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/plugin-ideal-image": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@docusaurus/preset-classic": "^3.0.0",

Choose a reason for hiding this comment

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

Correctness: ⚠️ @docusaurus/preset-classic is bumped to 3.x while @docusaurus/core and other plugins remain 2.4.1. Docusaurus requires matching major versions; this will cause peer dependency conflicts and likely build/runtime failures. Align all Docusaurus packages to the same major (either keep preset at 2.4.1 or upgrade core/plugins to 3.x).

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

In package.json at line 21, @docusaurus/preset-classic was upgraded to ^3.0.0 while other Docusaurus packages remain ^2.4.1. This major-version mismatch will cause peer dependency conflicts and build failures. Align all Docusaurus packages to the same major version—either revert preset-classic to ^2.4.1 or upgrade @docusaurus/core and plugins to ^3.x. Apply the fix accordingly.

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