Skip to content

fix(security): patch vite and postcss-selector-parser on 2.0 (backport #35937) - #35976

Merged
harsh-vador merged 1 commit into
2.0from
fix/dependabot-vite-selector-parser-2.0
Oct 23, 2026
Merged

harsh-vador merged 1 commit into
2.0from
fix/dependabot-vite-selector-parser-2.0

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Backports #35937 to 2.0, together with the ui-core-components vite bump from #35837 that 2.0 never received. Only resolutions, two vite ranges and the lockfile blocks of these packages change. No source files change.

On 2.0, openmetadata-ui uses plain vite 7.3.5 (on main it is rolldown-vite), so the vite advisories reach both UIs here, not just ui-core-components.

Package 2.0 before → after Advisories Where
vite 7.3.5 → 7.3.7 GHSA-587h-7wmj-h5pm (high), GHSA-698v-4r3x-3vcv, GHSA-r825-w8mm-5pxw, GHSA-rq7h-c2jc-7f22, GHSA-9jrq-w75r-8gcw openmetadata-ui (exact pin), ui-core-components (devDependency)
postcss-selector-parser 6.0.10 → 7.1.7 (resolution) GHSA-rj75-hqrm-r3gf openmetadata-ui, ui-core-components (build time only)

Not in this backport: #35937's vitest 4.1.12 bump. ui-core-components on 2.0 has no vitest.

postcss-selector-parser. The pin overrides @tailwindcss/typography's exact 6.0.10 pin across a major version. #35937 explains why that is safe: the only break in 7.0.0 does not reach typography's one call site, commonTrailingPseudos. The compiled CSS is byte-identical (see Tests).

vite 7.3.7 widens its esbuild range to ^0.27.0 || ^0.28.0. The existing esbuild 0.28.1 resolution still applies, so only the lock range key changes.

Companion Collate backport: open-metadata/openmetadata-collate#7712. Each repo resolves its own node_modules, so neither PR depends on the other to merge.

Type of change:

  • Bug fix

High-level design:

N/A, small change.

Tests:

Use cases covered

  • Dependency resolution only. No source file changes.

Unit tests

  • No new tests: no source changed.
  • Lockfiles: both were regenerated with yarn install (yarn 1.22.22). The diffs contain only the vite and postcss-selector-parser blocks and the esbuild range key, with no unrelated churn. yarn install --frozen-lockfile from an empty node_modules passes on both and installs vite 7.3.7 and postcss-selector-parser 7.1.7.
  • ui-core-components yarn build: passes on vite 7.3.7, and dist/ is byte-identical to the unmodified 2.0 build, CSS included. 2.0 has no core-components test script.
  • openmetadata-ui Tailwind output: I compiled src/styles/tailwind.css (typography plugin, full @source scan, 53,808 candidates) through @tailwindcss/node before and after. The output is byte-identical (337,080 bytes).
  • openmetadata-ui production build on vite 7.3.7: vite build passes (14,178 modules, exit 0). I generated the git-ignored ANTLR parser with ANTLR 4.9.2, the version the antlr4 4.9.2 runtime needs, and ran parse-schema first, as build-check does.

Backend integration tests

  • Not applicable (no backend API changes).

Playwright (UI) tests

Not run. vite is a build and dev-server tool, and postcss-selector-parser runs only inside typography while the CSS is built, where the output is byte-identical (see above). 2.0 has no Playwright impact planner. #35937 ran the parser pin through CI on main.

Manual testing performed

N/A, no runtime code path changes.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable defects were found.

Summary

Updates both UI packages on 2.0 to vite 7.3.7 and forces postcss-selector-parser 7.1.7.

  • Both UI projects now use updated Vite and CSS parser versions.

Reviews (1) · Last reviewed commit: "fix(security): patch vite and postcss-se..." · Reviewed by Greptile

…35937)

- openmetadata-ui, ui-core-components: vite 7.3.5 -> 7.3.7 (main got
  the core-components bump in #35837)
- openmetadata-ui, ui-core-components: resolve postcss-selector-parser
  to 7.1.7 over @tailwindcss/typography's exact 6.0.10 pin; compiled
  CSS unchanged.
@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.

@github-actions github-actions Bot added the UI UI specific issues label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@gitar-bot

gitar-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Updating Vite and postcss-selector-parser changes UI build dependency resolution; incompatibilities could disrupt frontend builds or generated CSS.

Backports the vite (7.3.5 to 7.3.7) and postcss-selector-parser (6.0.10 to 7.1.7 via resolution) security patches to the 2.0 branch, plus the ui-core-components vite bump. Only resolutions, vite ranges and lockfile entries change, with no source files touched. 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 self-assigned this Oct 22, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.32% (82943/121388) 53.23% (51386/96521) 53.97% (15280/28310)

@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants