Skip to content

UID2-6617: Fix CVE-2026-26996 minimatch ReDoS vulnerability#780

Open
sunnywu wants to merge 4 commits intomainfrom
syw-UID2-6617-fix-minimatch-redos
Open

UID2-6617: Fix CVE-2026-26996 minimatch ReDoS vulnerability#780
sunnywu wants to merge 4 commits intomainfrom
syw-UID2-6617-fix-minimatch-redos

Conversation

@sunnywu
Copy link
Contributor

@sunnywu sunnywu commented Feb 20, 2026

Summary

Fixes UID2-6617

  • Adds minimatch: "^10.2.1" to overrides in package.json to resolve CVE-2026-26996 (HIGH severity)
  • CVE-2026-26996: ReDoS vulnerability in minimatch via repeated wildcards with a non-matching literal in the pattern
  • Previously installed versions: 10.1.1 and 3.1.2 (via transitive deps from eslint, jest, react-scripts, etc.)
  • After fix: all instances upgraded to 10.2.2

Test plan

  • Verify no minimatch versions below 10.2.1 appear in package-lock.json
  • Confirm Trivy vulnerability scan passes with no HIGH/CRITICAL findings for minimatch
  • Confirm app builds: npm run build
  • Confirm API tests pass: npm run test-api

🤖 Generated with Claude Code

sunnywu and others added 4 commits February 20, 2026 13:18
Add minimatch ^10.2.1 to overrides in package.json to resolve
CVE-2026-26996 (HIGH severity ReDoS via repeated wildcards with
non-matching literal in pattern). Previously minimatch 10.1.1 and 3.1.2
were present as transitive deps. All instances are now resolved to 10.2.2.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove duplicate "minimatch": "^3.1.2" key from overrides in package.json.
The duplicate silently overrode the correct "^10.2.1" fix, causing the lock
file to be out of sync and npm ci to fail with missing dependency errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Scope the minimatch override to keep eslint-plugin-import on v3.1.2,
which exports a callable function as required by its internals. The
global v10 override broke lint with 'TypeError: (0, _minimatch2.default)
is not a function'. All other packages continue to use minimatch ^10.2.1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant

Comments