Repository navigation
security: resolve glob/minimatch OSV advisories - #208
Merged
Merged
Conversation
Override glob 9+ to 14.0.3 and minimatch 9+ to 11.0.3 so the lockfile scan stops failing on GHSA-3g3m-2fjr-6pw4 and GHSA-g3hv-75wg-m249. Leave minimatch 3.x/5.x alone: mocha and ts-prune still require() it as a function. Ignore those leftover versions until 2026-12-30. Signed-off-by: Cursor Agent <cursoragent@cursor.com>
2 of 3 tasks
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.
Lane
What and why
OSV-Scanner has been failing on
mastersince #191 (5:08 PM PT Oct 30). The lockfile scan reports seven Medium findings that did not exist earlier that afternoon:glob10.5.0 and 13.0.6. AbortSignal cancellation does not stop the walker. Fixed in 14.0.2+.minimatch3.x / 5.x / 9.x / 10.x. Pattern amplification infirstPhasePreProcesswhenoptimizationLevel >= 2. Fixed only in 11.0.1+.No same-major patches exist. The compatible majors are now overridden; the two leftover lines that cannot take the CJS namespace change are ignored by package version, not by advisory id.
Overrides (patched versions in the lockfile)
glob@>=9→ 14.0.3. Consumers were@wdio/configandarchiver-utils(10.x) and Storybook's react-docgen plugin (13.x). Both still exposesync/globSync. mocha'sglob8.1.0 is outside the advisory range (introduced in 9.0.0) and is left alone.minimatch@>=9→ 11.0.3. Covers Stryker, typescript-eslint, and the glob 10 leftover. 9.x/10.x already use the dual CJS/ESM named-export API.Published 2026-10-27/28, so they clear pnpm
minimumReleaseAge.pnpm installdid not hitERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION.Ignores (why 3.x/5.x stay)
These are
PackageOverrideson exact leftover versions, expiry 2026-12-30 (~60 days). The advisory id is not ignored, so a later 9.x/10.x regression still fails the scan.minimatch 3.1.5 —
@ts-morph/common0.12.3 (ts-prune) andrecursive-readdir2.2.3 (create-wdio). Bothrequire('minimatch')as a CJS function orMinimatchconstructor. 11.x CJS is a namespace (typeof require('minimatch') === 'object') and is not callable. Dev-only; patterns are repo-controlled. 3.x does not havefirstPhasePreProcess/optimizationLevel >= 2.minimatch 5.1.9 — mocha 10.8.2 (WDIO),
filelist1.0.6,readdir-glob1.1.3 (archiver), and mocha'sglob8.1.0. mocha doesconst minimatch = require('minimatch'); minimatch(filename, pattern, …). That call throws on 11.x. Dev-only WDIO/archive paths on repo-controlled sources. 5.x also lacks the described preprocessor.Rewriting mocha or ts-prune to the 11.x namespace is out of scope for this unblock.
Check command
pnpm verify:affectedselected only touched-file format/lint/audits and then exited because the planner escalates workspace/lockfile edits to the hosted full gate. Those selected lanes passed locally (biome check,audit:emoji,audit:docs,audit:claims).Checklist
git commit -s)