fix: patch @babel/runtime and minimatch ReDoS vulnerabilities#405
Merged
fabiankaegy merged 2 commits into10up:developfrom Apr 1, 2026
Merged
Conversation
`@wordpress/icons@10.x` (latest: 10.32.0) ships `@babel/runtime@7.25.7` as a production dependency, which is vulnerable to the inefficient RegExp complexity CVE (GHSA-968p-4wvh-cqc8, fixed in @babel/runtime@7.26.10). `@wordpress/icons@11.0.0` drops the `@babel/runtime` dependency entirely, resolving the CVE for consumers of `@10up/block-components`. The only usage is three stable icons (`close`, `chevronUp`, `chevronDown`) in `components/content-picker/PickedItem.tsx`, all of which are present in v11 and v12.
…86-cg39-jmmj, GHSA-23c5-xmqv-rm74 `@typescript-eslint/parser@^6` (a direct dependency) brings in `minimatch: ^9.0.3`, which resolves into the vulnerable range `9.0.0–9.0.6`. All three ReDoS CVEs are fixed in minimatch@9.0.7. Adding `"minimatch": "^9.0.7"` to the existing `overrides` block pins the transitive dep to 9.0.9 (current latest-v9). The proper long-term fix is upgrading to @typescript-eslint@8 once WordPress/Gutenberg completes their ESLint v10 migration (gutenberg#64782).
This was referenced May 6, 2026
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
@wordpress/iconsfrom^10.0.0to^11.0.0to fix GHSA-968p-4wvh-cqc8 (@babel/runtimeinefficient RegExp complexity)"minimatch": "^9.0.7"to theoverridesblock to fix GHSA-3ppc-4f35-3m26, GHSA-7r86-cg39-jmmj, GHSA-23c5-xmqv-rm74 (minimatch ReDoS via@typescript-eslint@^6)Details
@babel/runtime (GHSA-968p-4wvh-cqc8)
@wordpress/icons@10.x(latest: 10.32.0) ships@babel/runtime@7.25.7as a production dependency, which has an inefficient RegExp complexity vulnerability fixed in@babel/runtime@7.26.10.@wordpress/icons@11.0.0drops the@babel/runtimedependency entirely.The only usage in this package is three stable icons (
close,chevronUp,chevronDown) incomponents/content-picker/PickedItem.tsx, all of which are present in v11.minimatch ReDoS (GHSA-3ppc-4f35-3m26 / GHSA-7r86-cg39-jmmj / GHSA-23c5-xmqv-rm74)
@typescript-eslint/parser@^6(a direct dependency) usesminimatch: ^9.0.3, which resolves into the vulnerable range9.0.0–9.0.6. All three ReDoS CVEs are patched inminimatch@9.0.7. Adding"minimatch": "^9.0.7"to the existingoverridesblock pins the transitive dep to9.0.9without requiring a major upgrade.The long-term fix is upgrading to
@typescript-eslint@8+ ESLint v10, tracked upstream in WordPress/gutenberg#64782.Test plan
PickedItemcomponent renders correctly with the drag-and-drop content pickernpm auditand confirm no@babel/runtimeor minimatch CVEs in the vulnerable rangesnpm run buildsuccessfully🤖 Generated with Claude Code