Skip to content

fix: add minimatch resolution to patch ReDoS vulnerability (CVE-2026-…#2917

Merged
foodaka merged 1 commit intomainfrom
chore/dep-bot
Mar 23, 2026
Merged

fix: add minimatch resolution to patch ReDoS vulnerability (CVE-2026-…#2917
foodaka merged 1 commit intomainfrom
chore/dep-bot

Conversation

@foodaka
Copy link
Copy Markdown
Collaborator

@foodaka foodaka commented Mar 23, 2026

…26996)

General Changes

  • Fixes XYZ bug
  • Adds XYZ feature

Developer Notes

Add any notes here that may be helpful for reviewers.


Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)

Copilot AI review requested due to automatic review settings March 23, 2026 09:12
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
interface Ready Ready Preview, Comment Mar 23, 2026 9:17am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a reported ReDoS vulnerability by forcing an updated minimatch version via Yarn resolutions, updating the lockfile accordingly.

Changes:

  • Add a Yarn resolutions entry to require a patched minimatch version.
  • Regenerate yarn.lock, resulting in minimatch resolving to 10.2.4 and updating related transitive deps (brace-expansion, balanced-match) and removing no-longer-needed transitive deps (concat-map).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
package.json Adds a minimatch resolution intended to ensure a non-vulnerable version is installed.
yarn.lock Reflects the new dependency graph, including the minimatch major upgrade and updated transitive dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"resolutions": {
"h3": "^1.15.5"
"h3": "^1.15.5",
"minimatch": ">=5.1.7"
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

The new Yarn resolution uses an open-ended range (">=5.1.7"), which can silently pull in future major versions of minimatch and change behavior without any code changes. To keep installs deterministic and reduce upgrade risk, consider pinning this to a specific version (or at least a single major line such as "^5.1.7") that you’ve validated with the current toolchain.

Suggested change
"minimatch": ">=5.1.7"
"minimatch": "^5.1.7"

Copilot uses AI. Check for mistakes.
Comment on lines 6 to 9
"resolutions": {
"h3": "^1.15.5"
"h3": "^1.15.5",
"minimatch": ">=5.1.7"
},
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

PR description still contains placeholder items (e.g., "Fixes XYZ bug" / "Adds XYZ feature"), but this change appears to be a dependency-resolution security patch for minimatch. Please update the PR description to reflect the actual change (CVE, affected surface, and what was tested) so reviewers/release notes aren’t misleading.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/sgho 88.09 KB (-4 B) 1.24 MB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@foodaka foodaka merged commit 424d376 into main Mar 23, 2026
30 of 31 checks passed
@foodaka foodaka deleted the chore/dep-bot branch March 23, 2026 15:55
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.

3 participants