Skip to content

[Snyk] Fix for 2 vulnerabilities#93

Open
q1blue wants to merge 1 commit intomainfrom
snyk-fix-0427e7e885bf2f7f07717b0699901f96
Open

[Snyk] Fix for 2 vulnerabilities#93
q1blue wants to merge 1 commit intomainfrom
snyk-fix-0427e7e885bf2f7f07717b0699901f96

Conversation

@q1blue
Copy link
Contributor

@q1blue q1blue commented Feb 3, 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

Major framework upgrade migrating Docusaurus from v2.4.1 to v3.0.0 with supporting dependency updates.

  • Upgraded @docusaurus/preset-classic to ^3.0.0 in package.json
  • Upgraded octokit GitHub API client to ^3.0.0 in package.json
  • Updated MDX ecosystem (@mdx-js/mdx and @mdx-js/react) from 1.6.22 to 3.1.1 in package-lock.json
  • Added/upgraded Algolia search and client dependencies in package-lock.json
  • Updated Babel plugins and core build utilities to version 7.29.0 for compatibility

@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 identified Regular Expression Denial of Service (ReDoS) vulnerabilities. It achieves this by performing necessary dependency upgrades, ensuring the application relies on more secure and up-to-date package versions.

Highlights

  • Security Vulnerability Fixes: This pull request addresses two Regular Expression Denial of Service (ReDoS) vulnerabilities: SNYK-JS-TRIM-1017038 and SNYK-JS-OCTOKITREQUEST-8730853, by upgrading affected dependencies.
  • Dependency Upgrades: The @docusaurus/preset-classic package has been upgraded from version ^2.4.1 to ^3.0.0, and the octokit package has been upgraded from ^2.0.14 to ^3.0.0.
Changelog
  • package.json
    • Updated @docusaurus/preset-classic from ^2.4.1 to ^3.0.0.
    • Updated octokit from ^2.0.14 to ^3.0.0.
Activity
  • This pull request was automatically created by Snyk to fix identified vulnerabilities.
  • The PR aims to resolve two Regular Expression Denial of Service (ReDoS) 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.

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, automatically generated by Snyk, upgrades @docusaurus/preset-classic and octokit to fix security vulnerabilities. While addressing security is important, both upgrades are major versions and introduce significant breaking changes. The upgrade to Docusaurus v3 requires React v18, but the project's dependencies are not updated accordingly, which will likely cause the build to fail. The octokit upgrade also has breaking changes that will require code modifications. These issues must be addressed for the application to function correctly after the merge.

"@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

Upgrading @docusaurus/preset-classic to v3 is a breaking change. Docusaurus v3 requires React v18, but this project is still on React v17 (see lines 30-31). This version mismatch will cause the build to fail. To fix this, you must also upgrade react and react-dom to ^18.0.0 and address any other breaking changes introduced by Docusaurus v3. You can find more information in the official migration guide.

"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

The upgrade of octokit from v2 to v3 is a major version bump with breaking changes. This will likely break any functionality that relies on octokit, as APIs and methods may have changed. The code using octokit needs to be updated to be compatible with v3. Please review the octokit v3 release notes and update any relevant code.

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 framework upgrade, migrating the project from Docusaurus 2.4.1 to 3.0.0. The update encompasses significant changes to the MDX ecosystem, upgrading @mdx-js packages from version 1.6.22 to 3.1.1, which represents a substantial architectural shift. The Octokit GitHub API client is also upgraded from 2.0.14 to 3.0.0. Supporting dependencies including Algolia search libraries and Babel build tools have been updated to version 7.29.0 to maintain compatibility with the new dependency tree. These major version bumps likely introduce breaking changes requiring code adjustments to accommodate new APIs and features.

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, representing major version bumps with potential breaking changes.
package-lock.json Updated Docusaurus framework from 2.4.1 to 3.0.0, MDX packages (@mdx-js/mdx and @mdx-js/react) from 1.6.22 to 3.1.1, octokit to 3.0.0, added/upgraded Algolia search and client dependencies, and updated Babel plugins and core utilities to 7.29.0.

Sequence Diagram

This diagram shows the interactions between components:

sequenceDiagram
    autonumber
    participant U as User / Browser
    participant D as Docusaurus Core (v3)
    participant ML as MDX Loader (v3)
    participant AC as Algolia Search Client (v5)
    participant OK as Octokit (v3)
    participant GH as GitHub API

    Note over D, OK: Build Time: Content Processing
    
    D->>ML: Request processing of .mdx files
    activate ML
    ML->>ML: Parse Markdown via Micromark
    ML->>ML: Transform to JSX (MDX 3 logic)
    ML-->>D: Return bundled component
    deactivate ML

    Note over D, OK: Runtime: User Interaction
    
    U->>D: Access Documentation Page
    D-->>U: Render React Components

    opt Search Interaction
        U->>D: Enter search query in DocSearch
        D->>AC: search(query)
        activate AC
        AC->>AC: Initialize Transporter
        AC->>AC: Execute Search Request
        AC-->>D: Return Search Results
        deactivate AC
        D-->>U: Display Results
    end

    Note over D, OK: Integration: GitHub Data Fetching
    
    alt Authenticated Request
        D->>OK: Initialize with Auth Plugin
        OK->>GH: request(endpoint)
    else Unauthenticated / Public
        D->>OK: Initialize Unauthenticated
        OK->>GH: request(public_endpoint)
    end
    
    activate GH
    GH-->>OK: JSON Response
    deactivate GH
    
    loop Pagination (Octokit v3)
        OK->>GH: paginate(next_page)
        GH-->>OK: Page Data
    end
    
    OK-->>D: Return aggregated data
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-ideal-image": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@docusaurus/preset-classic": "^3.0.0",
"@mdx-js/react": "^1.6.22",

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 now ^3.0.0 while @docusaurus/core and other plugins remain ^2.4.1. Docusaurus requires all packages to share the same major version, so this will break installs/builds due to peer dependency conflicts. Align the major versions (either upgrade all Docusaurus packages to 3.x or keep preset at 2.4.1).

🤖 AI Agent Prompt for Cursor/Windsurf

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

File: package.json. The diff upgrades @docusaurus/preset-classic to ^3.0.0 while @docusaurus/core and other plugins remain ^2.4.1. Docusaurus packages must share the same major version. Fix by aligning versions: either upgrade all Docusaurus packages to 3.x or revert preset-classic to ^2.4.1. Apply the suggested change or update all related deps consistently.
✨ Committable Code Suggestion

💡 This is a one-click fix! Click "Commit suggestion" to apply this change directly to your branch.

Suggested change
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-content-docs": "^2.4.1",
"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/plugin-ideal-image": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@mdx-js/react": "^1.6.22",
"@svgr/webpack": "^6.5.1",
"clsx": "^2.0.0",
"file-loader": "^6.2.0",
"nvm": "^0.0.4",
"octokit": "^3.0.0",
"prism-react-renderer": "^1.2.1",
"prismjs": "^1.23.0",
"react": "^17.0.1",

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 3, 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 bcfa640 Feb 03 2026, 01:52 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 +1100

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.30001767

ℹ 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.30001767. 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

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