Repository navigation
Fix minimatch vulnerability in packaging tools - #4
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@vscode/vsce@4.1.2-0prerelease. It resolves patchedminimatch@11.0.9.ovsxresolve that same vsce version using a scoped npm override referencing the direct pin. Its normal^4.0.0range excludes prereleases and would otherwise retain an unpatched stable copy. No unsupported minimatch major override is used.@vscode/vsceso 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 to4.1.2-0; only patchedminimatch@11.0.9is 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.