Skip to content

fix(ui): move core-components to minimatch 11 for GHSA-g3hv-75wg-m249 - #38104

Merged
harsh-vador merged 1 commit into
mainfrom
fix/core-components-minimatch-11
Nov 18, 2026
Merged

harsh-vador merged 1 commit into
mainfrom
fix/core-components-minimatch-11

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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 in minimatch. The only fixed line is 11 (11.0.1+), and there is no 10.x backport. After this PR the lockfile has a single minimatch (11.0.9) and a single glob (14.0.6).

Change Why
resolutions.minimatch 10.2.3 → 11.0.9 This is the blanket pin from #26350, moved to the fixed line.
resolutions["**/i18next-json-sync/glob"] and ["**/@joshwooding/vite-plugin-react-docgen-typescript/glob"] → 14.0.6 On minimatch 11, glob@7 throws (Cannot read properties of undefined (reading 'charAt'), the failure that got this bump reverted from #36806), and glob@10 silently matches nothing. glob 14 is the line built for minimatch ^11, and both parents only call glob.sync / globSync.
typescript-eslint ^8.20.0 → ^8.73.0 Its typescript-estree depends on minimatch ^11.
Removed i18next-parser It was never configured or invoked (it has no config file, no script and no import). It pulled in the broccoli → rimraf 3/5 → glob 7/10 chain. This drops about 900 lockfile lines.

minimatch 11 removes makeRe, AST and the debug option. The remaining consumers (eslint 9 and @eslint/*, eslint-plugin-react, @microsoft/api-extractor, @vue/language-core, typescript-estree) import only minimatch() / Minimatch, and 11 keeps both.

Companion Collate PR, which covers the same advisory in migration-tests and collate-desktop: https://github.com/open-metadata/openmetadata-collate/pull/8673.

oss-1-branch-build oss-2-main-baseline-and-dist-diff

Type of change:

  • Bug fix

High-level design:

N/A, small change.

Tests:

I compared each check below on this branch against main's lockfile (minimatch 10.2.3), in the same checkout:

  • vite build: the dist/ trees are byte-identical (diff -rq), including the .d.ts that vite-plugin-dts emits through api-extractor and @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 same tag/*-tag.test.tsx "should render a tooltip trigger" tests, which also fail on main.
  • yarn check-i18n-all: passes, so the i18next-json-sync path 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 from fr-fr.json, and check-i18n then failed with Missing keys in src/locale/languages/fr-fr.json: apply. This shows glob 14 finds the locale files and is not passing on zero matches.
  • Storybook's react-docgen-typescript plugin is the glob@10 consumer. It is inactive by default here, since .storybook/main.ts sets no reactDocgen. glob 14's globSync is a named ESM export, as the plugin expects, and it matches the 21 locale files.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>. N/A: this is a dependency/CVE fix with no issue.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above. N/A: same reason. It is part of the tracker open-metadata/openmetadata-collate#7792.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above. No new tests: no source changes. The before/after comparisons are listed above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill 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, that i18next-parser has no references, and that every range is present in the lockfile.
  • Decision check: no record needed.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The reviewed changes appear safe to merge.

Summary

Updates the shared UI library’s development dependencies to address the reported minimatch advisory.

  • The UI package’s development tools use the fixed minimatch 11 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

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.
@harsh-vador
harsh-vador requested a review from a team as a code owner November 18, 2026 09:54
@harsh-vador
harsh-vador requested a review from karanh37 November 18, 2026 09:54
@harsh-vador harsh-vador added the UI UI specific issues label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Nov 18, 2026
@gitar-bot

gitar-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

The 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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@harsh-vador
harsh-vador enabled auto-merge (squash) November 18, 2026 10:11
@harsh-vador harsh-vador added the To release Will cherry-pick this PR into the release branch label Nov 18, 2026
@harsh-vador
harsh-vador merged commit be88b55 into main Nov 18, 2026
49 of 54 checks passed
@harsh-vador
harsh-vador deleted the fix/core-components-minimatch-11 branch November 18, 2026 10:24
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.0 opened as #38106. Claude resolved a cherry-pick conflict to build it. It merges itself once the checks pass, so read the diff now if this change is a sensitive one.

harsh-vador added a commit that referenced this pull request Nov 18, 2026
…#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants