Skip to content

[Snyk] Fix for 2 vulnerabilities#92

Open
q1blue wants to merge 1 commit intomainfrom
snyk-fix-6ab67e9e4753a805aa07690bba7b9d9f
Open

[Snyk] Fix for 2 vulnerabilities#92
q1blue wants to merge 1 commit intomainfrom
snyk-fix-6ab67e9e4753a805aa07690bba7b9d9f

Conversation

@q1blue
Copy link
Contributor

@q1blue q1blue commented Feb 1, 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
  696  
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITREQUEST-8730853
  666  

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 dependency upgrades for Docusaurus documentation framework and Octokit GitHub API client.

  • Upgraded @docusaurus/preset-classic from v2.4.1 to v3.0.0 with breaking changes
  • Upgraded octokit from v2.0.14 to v3.0.0
  • Updated dependency tree including Algolia search, Babel, and Markdown processing tools
  • Introduced new utility packages and sub-dependencies for Docusaurus v3 compatibility

@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@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.30001766

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

@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 pull request upgrades two major dependencies to their latest major versions. The Docusaurus preset is updated from v2 to v3, bringing significant changes to the documentation framework's core architecture, including updates to the Algolia search integration, Babel transformation pipeline, and Markdown processing tools (Remark/Rehype). The Octokit GitHub API client is also upgraded from v2 to v3. These major version bumps introduce breaking changes that require careful compatibility testing. The package-lock.json reflects a comprehensive dependency tree refresh with new utility packages and sub-dependencies to support the updated Docusaurus v3 requirements.

Changes

File(s) Summary
package.json Updated @docusaurus/preset-classic from ^2.4.1 to ^3.0.0 and octokit from ^2.0.14 to ^3.0.0, representing major version upgrades for both dependencies.
package-lock.json Refreshed entire dependency tree to reflect major version upgrades, including updates to Algolia search suite, Babel transformation tools, Remark/Rehype Markdown processing pipeline, and introduction of new utility packages required by Docusaurus v3.

Sequence Diagram

This diagram shows the interactions between components:

sequenceDiagram
    autonumber
    participant CI as Build System / Developer
    participant Core as Docusaurus Core (v3)
    participant MDX as MDX Loader (v3)
    participant Algolia as Algolia Search Client (v5)
    participant App as Application Logic
    participant Octo as Octokit (v3)
    participant GH as GitHub API

    Note over CI, Algolia: Site Generation Flow (Docusaurus v3)

    CI->>Core: Execute docusaurus build
    activate Core
    
    Core->>MDX: Process .mdx and .md files
    activate MDX
    Note right of MDX: Uses new MDX v3 engine<br/>for faster transpilation
    MDX-->>Core: Return React Components
    deactivate MDX

    alt Search Indexing Enabled
        Core->>Algolia: Push content records
        Algolia-->>Core: Indexing Confirmation
    end

    Core-->>CI: Static Site Assets
    deactivate Core

    Note over App, GH: API Interaction Flow (Octokit v3)

    App->>Octo: Initialize Octokit Instance
    
    loop For each GitHub Request
        App->>Octo: request(endpoint, parameters)
        activate Octo
        Note right of Octo: Uses updated v3<br/>Plugin Architecture
        
        Octo->>GH: REST/GraphQL API Call
        activate GH
        GH-->>Octo: API Response (JSON)
        deactivate GH
        
        Octo-->>App: Typed Response Data
        deactivate Octo
    end
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 was bumped to v3 while @docusaurus/core and other Docusaurus packages remain at v2.4.1. Docusaurus requires matching major versions; mixing v2 and v3 can break builds or runtime behavior. Align all Docusaurus packages to the same major version (either keep preset at v2.4.1 or upgrade core/plugins to v3).

🤖 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` line 21, `@docusaurus/preset-classic` was updated to `^3.0.0` while `@docusaurus/core` and other Docusaurus plugins remain at `^2.4.1`. Docusaurus packages must share the same major version. Either downgrade `@docusaurus/preset-classic` back to `^2.4.1` or upgrade all Docusaurus packages (`@docusaurus/core`, plugins, module-type-aliases) to `^3.0.0` consistently.
✨ Committable Code Suggestion

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

Suggested change
"@docusaurus/preset-classic": "^3.0.0",
"@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 1, 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 2dfd8f1 Feb 01 2026, 06:20 AM

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