[agent] chore(deps): pin brace-expansion to 5.0.6 (GHSA-jxxr-4gwj-5jf2)#754
Draft
github-actions[bot] wants to merge 1 commit into
Draft
Conversation
Adds npm overrides to pin brace-expansion to 5.0.6 across all transitive dependencies. Also patches the package-lock.json entry for packages/sbom-tools/node_modules/brace-expansion which was not automatically updated due to npm workspace override behaviour. Fixes CVE-2026-45149 / GHSA-jxxr-4gwj-5jf2 (Dependabot alert #262). Co-authored-by: Copilot <[email protected]>
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
Pins
brace-expansionto5.0.6to remediate CVE-2026-45149 / GHSA-jxxr-4gwj-5jf2 (Dependabot alert #262).Vulnerability: Large numeric range
{1..10000000}defeats the documentedmaxDoS protection — the full intermediate array is allocated before the limit is applied, consuming ~505 MB and ~800 ms even when only 10 items are returned.Severity: Medium (CVSS 6.5)
Changes
package.jsonAdded an npm
overridesentry to force all transitive resolutions ofbrace-expansionto5.0.6:package-lock.jsonUpdated by running
npm install --package-lock-only --ignore-scripts. The root-level override resolved most instances automatically. One workspace-nested entry (packages/sbom-tools/node_modules/brace-expansion) was not automatically updated due to known npm workspace override behaviour — it was patched directly in the lockfile. The updated version (5.0.6) satisfies all declared ranges (^5.0.5) in that sub-tree.Why overrides (not a direct bump)?
brace-expansionis a transitive dependency pulled in via multiple chains (e.g.rimraf → glob → minimatch → brace-expansion,lerna → glob → minimatch → brace-expansion, etc.). None of the direct dependencies have released a version that pulls in5.0.6yet, so anoverridespin is the appropriate remediation.Alerts addressed
brace-expansionCVE-2026-45149 / GHSA-jxxr-4gwj-5jf2