Repository navigation
fix(ui): move core-components to minimatch 11 for GHSA-g3hv-75wg-m249 - #38104
Conversation
minimatch's globparts amplification DoS is fixed only in 11.0.1, so the blanket 10.2.3 pin moves to 11.0.9. Two consumers cannot run on 11: glob 7 throws and glob 10 silently matches nothing, so their parents (i18next-json-sync and storybook's react-docgen-typescript plugin) are resolved to glob 14, which itself requires minimatch ^11. Also drops i18next-parser: it was never configured or invoked, and it pulled in the broccoli/rimraf/glob 7 and 10 chain. typescript-eslint moves to 8.73, whose typescript-estree depends on minimatch ^11. The vite build output is byte-identical, eslint output is unchanged, and check-i18n-all still passes and still fails on a missing key.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskThe minimatch and glob resolution changes alter the UI toolchain’s dependency behavior and could disrupt builds or localization checks. Moves core-components to minimatch 11.0.9 to fix GHSA-g3hv-75wg-m249, pinning glob to 14.0.6 for the scoped consumers and bumping typescript-eslint to ^8.73.0. Removes the unused i18next-parser dependency. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🤖 Backport to |
|
🤖 Backport to |
…#38104) (#38106) minimatch's globparts amplification DoS is fixed only in 11.0.1, so the blanket 10.2.3 pin moves to 11.0.9. Two consumers cannot run on 11: glob 7 throws and glob 10 silently matches nothing, so their parents (i18next-json-sync and storybook's react-docgen-typescript plugin) are resolved to glob 14, which itself requires minimatch ^11. Also drops i18next-parser: it was never configured or invoked, and it pulled in the broccoli/rimraf/glob 7 and 10 chain. typescript-eslint moves to 8.73, whose typescript-estree depends on minimatch ^11. The vite build output is byte-identical, eslint output is unchanged, and check-i18n-all still passes and still fails on a missing key. (cherry picked from commit be88b55) Co-authored-by: Harsh Vador <[email protected]>
Describe your changes:
Part of open-metadata/openmetadata-collate#7792. No linked issue: this is a dev-only dependency/CVE fix, and no source files change.
This closes Dependabot alert #821 in
openmetadata-ui-core-components, which is GHSA-g3hv-75wg-m249, a denial of service through globparts amplification inminimatch. The only fixed line is 11 (11.0.1+), and there is no 10.x backport. After this PR the lockfile has a singleminimatch(11.0.9) and a singleglob(14.0.6).resolutions.minimatch10.2.3→11.0.9resolutions["**/i18next-json-sync/glob"]and["**/@joshwooding/vite-plugin-react-docgen-typescript/glob"]→14.0.6minimatch11,glob@7throws (Cannot read properties of undefined (reading 'charAt'), the failure that got this bump reverted from #36806), andglob@10silently matches nothing. glob 14 is the line built forminimatch ^11, and both parents only callglob.sync/globSync.typescript-eslint^8.20.0→^8.73.0typescript-estreedepends onminimatch ^11.i18next-parserminimatch11 removesmakeRe,ASTand thedebugoption. The remaining consumers (eslint9 and@eslint/*,eslint-plugin-react,@microsoft/api-extractor,@vue/language-core,typescript-estree) import onlyminimatch()/Minimatch, and 11 keeps both.Companion Collate PR, which covers the same advisory in
migration-testsandcollate-desktop: https://github.com/open-metadata/openmetadata-collate/pull/8673.Type of change:
High-level design:
N/A, small change.
Tests:
I compared each check below on this branch against
main's lockfile (minimatch10.2.3), in the same checkout:vite build: thedist/trees are byte-identical (diff -rq), including the.d.tsthatvite-plugin-dtsemits throughapi-extractorand@vue/language-core.eslint src/: the output is identical (0 errors, 1 warning).vitest run: 1045 tests pass and 6 fail on both. The 6 failures are the sametag/*-tag.test.tsx"should render a tooltip trigger" tests, which also fail onmain.yarn check-i18n-all: passes, so thei18next-json-syncpath that broke in fix(ui): link only http(s) URLs in the summary panel and sanitize the editor's final Markdown pass #36806 now works. As a negative check, I deleted one key fromfr-fr.json, andcheck-i18nthen failed withMissing keys in src/locale/languages/fr-fr.json: apply. This shows glob 14 finds the locale files and is not passing on zero matches.react-docgen-typescriptplugin is theglob@10consumer. It is inactive by default here, since.storybook/main.tssets noreactDocgen. glob 14'sglobSyncis a named ESM export, as the plugin expects, and it matches the 21 locale files.Checklist:
Fixes <issue-number>: <short explanation>. N/A: this is a dependency/CVE fix with no issue.Fixes #<issue-number>above. N/A: same reason. It is part of the tracker open-metadata/openmetadata-collate#7792.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.222b9205f24: 0 findings. The reviewer checked every minimatch consumer's import shape, the scoped glob resolutions taking effect, thati18next-parserhas no references, and that every range is present in the lockfile.🤖 Generated with Claude Code


Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
Updates the shared UI library’s development dependencies to address the reported
minimatchadvisory.minimatch11 line.No actionable issues found. Tests were not rerun. The generated lockfile was excluded as requested.
Reviews (5) · Last reviewed commit: "fix(ui): move core-components to minimat..." · Reviewed by Greptile