Skip to content

[Snyk] Security upgrade glob from 11.0.3 to 11.1.0#108

Open
hbmartin wants to merge 1 commit into
mainfrom
snyk-fix-8a02dfb265606e2490c5f7816363f063
Open

[Snyk] Security upgrade glob from 11.0.3 to 11.1.0#108
hbmartin wants to merge 1 commit into
mainfrom
snyk-fix-8a02dfb265606e2490c5f7816363f063

Conversation

@hbmartin
Copy link
Copy Markdown
Owner

@hbmartin hbmartin commented Nov 20, 2025

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 Command Injection
SNYK-JS-GLOB-14040952
  778  

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:

🦉 Command Injection


Note

Upgrade glob from 11.0.3 to 11.1.0 and refresh lockfile (including transitive minimatch).

  • Dependencies:
    • Bump glob from ^11.0.3 to ^11.1.0 in package.json.
    • Update package-lock.json to glob@11.1.0 and transitive minimatch@10.1.1 with corresponding metadata.

Written by Cursor Bugbot for commit 310fd31. This will update automatically on new commits. Configure here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Nov 20, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-8a02dfb265606e2490c5f7816363f063

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @hbmartin, 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 upgrading a critical npm dependency. It resolves a high-severity command injection vulnerability by updating the glob package to its latest secure version, ensuring the project benefits from the most recent security patches.

Highlights

  • Security Vulnerability Fix: This pull request addresses a high-severity Command Injection vulnerability (SNYK-JS-GLOB-14040952) detected in the glob npm package.
  • Dependency Upgrade: The glob package has been upgraded from version 11.0.3 to 11.1.0 to remediate the identified security flaw.
  • Transitive Dependency Update: As part of the glob upgrade, its dependency minimatch has also been updated from 10.0.3 to 10.1.1.
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.

@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
Updatedglob@​11.0.3 ⏵ 11.1.0100 +1100 +22100 +192100

View full report

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@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, correctly upgrades the glob package to version 11.1.0 to resolve a command injection vulnerability. The changes in package.json and package-lock.json are appropriate for this purpose. Note that this upgrade also changes the license for glob and its transitive dependency minimatch from ISC to BlueOak-1.0.0, which is also a permissive license. My review includes a suggestion to investigate whether the glob dependency is still necessary, as there appears to be a custom implementation of glob functionality within the codebase. If the package is unused, removing it would be the best long-term solution.

Comment thread package.json
"ai-sdk-react-model-picker": "^0.4.0",
"execa": "^9.6.0",
"glob": "^11.0.3",
"glob": "^11.1.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

While upgrading glob to fix the security vulnerability is a good immediate step, I noticed that src/tools/glob-tool.ts seems to contain a custom implementation of glob functionality. Is the glob npm package actually used anywhere in the production code? If it's only used for development or testing, it should be moved to devDependencies. If it's not used at all, it would be better to remove it completely to reduce the dependency footprint and potential future vulnerabilities.

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