Repository navigation
fix(deps): override minimatch to ^11.0.9 under nodemon - #83
Merged
Merged
Conversation
Dependabot alert 94 / GHSA-g3hv-75wg-m249 (CVE-2026-118764): minimatch >= 7.0.0 < 11.0.1 amplifies globParts in firstPhasePreProcess when optimizationLevel >= 2, so an attacker-controlled pattern can force quadratic work. nodemon 3.1.14 is the latest release and still requires minimatch ^10.2.1, and 10.x stops at 10.2.6 with no patched release. A scoped override moves nodemon onto the 11.x line eslint already uses, which also dedupes the two nested 11.0.9 copies into one. npm audit now reports 0 vulnerabilities. lint, 36 tests, npm ci and a nodemon restart smoke test pass. Remove the override once nodemon widens its own range.
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.
Closes Dependabot alert #94.
Cause
minimatch@10.2.6reached the tree as a dev-only transitive dependency ofnodemon@3.1.14(minimatch: ^10.2.1).>= 7.0.0, < 11.0.1; first patched:11.0.1**/../clones entries intoglobPartsinside a fixpoint loop, thensecondPhasePreProcess()compares pairs, so an attacker-supplied pattern causes quadratic CPU and memory use. It needsoptimizationLevel >= 2.nodemon@3.1.14is the latest release and still declares^10.2.1. The 10.x line stops at10.2.6(nolegacy-v10dist-tag), so no backport is available and no parent bump exists.Change
Scoped npm override in
package.json, plus the regenerated lockfile:minimatch@11.0.9is the version eslint 10.15.0 already resolves (^11.0.5), so the 11.x line was already exercised in this repo. The override also collapses the two nested11.0.9copies into one hoisted install, which is why the lockfile diff is a net deletion.Verification
npm install(lockfile regeneration)npm cinpm ls minimatchminimatch@11.0.9,10.2.6gonenpm auditnpm run lintnpm testsrc/server.js, restarts on file change, exits cleanlyNotes
minimatch@11requires Node20 || >=22(10.x allowed 18). The repo and container are on Node 24, and CI runs the same, so no engines change is needed.{ dot: true }, and the vulnerable branch needsoptimizationLevel >= 2against a default of 1. The override removes the flagged version rather than relying on that argument.minimatchrange.