Skip to content

Fix minimatch vulnerability in packaging tools - #4

Merged
mor10 merged 1 commit into
mainfrom
mor10/fix-minimatch-advisory
Nov 18, 2026
Merged

mor10 merged 1 commit into
mainfrom
mor10/fix-minimatch-advisory

Conversation

@mor10

@mor10 mor10 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Address Dependabot alert 1 / GHSA-g3hv-75wg-m249 by pinning Microsoft's approved official @vscode/vsce@4.1.2-0 prerelease. It resolves patched minimatch@11.0.9.
  • Temporarily make ovsx resolve that same vsce version using a scoped npm override referencing the direct pin. Its normal ^4.0.0 range excludes prereleases and would otherwise retain an unpatched stable copy. No unsupported minimatch major override is used.
  • Add daily Dependabot checks scoped to @vscode/vsce so a stable replacement can be proposed through a reviewed PR. Track the stable migration and temporary override removal in Replace temporary vsce prerelease with a patched stable release #3.

The prerelease was explicitly approved because the current stable vsce does not permit the patched minimatch version. No theme colors, extension version, publishing permissions, or authentication settings change.

Testing Done

  • npm ci --ignore-scripts --no-audit --no-fund.
  • npm ls @vscode/vsce minimatch --all: both vsce paths deduplicate to 4.1.2-0; only patched minimatch@11.0.9 is installed.
  • npm run check: formatting, all four tests, both theme files, and the exact VSIX file list pass.
  • npm run package: installable VSIX builds with the patched packaging tool and unchanged theme payloads.
  • npm audit --audit-level=moderate: 0 vulnerabilities.
  • git diff --check.

No extension was published. Dependabot alert closure requires merging the updated lockfile into the default branch. The stable-release tracking issue must remain open until the stable migration is complete.

Pin the approved Microsoft vsce prerelease and share it with ovsx so no vulnerable minimatch copy remains. Add daily scoped Dependabot checks for a stable replacement tracked in #3.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mor10
mor10 merged commit 878c094 into main Nov 18, 2026
1 check passed
@mor10
mor10 deleted the mor10/fix-minimatch-advisory branch November 18, 2026 22:26
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