Repository navigation
fix(security): patch vite and postcss-selector-parser on 2.0 (backport #35937) - #35976
Conversation
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
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. 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 |
|



Describe your changes:
Backports #35937 to
2.0, together with theui-core-componentsvite bump from #35837 that2.0never received. Onlyresolutions, two vite ranges and the lockfile blocks of these packages change. No source files change.On
2.0,openmetadata-uiuses plain vite 7.3.5 (onmainit isrolldown-vite), so the vite advisories reach both UIs here, not justui-core-components.viteopenmetadata-ui(exact pin),ui-core-components(devDependency)postcss-selector-parseropenmetadata-ui,ui-core-components(build time only)Not in this backport: #35937's
vitest4.1.12 bump.ui-core-componentson2.0has no vitest.postcss-selector-parser. The pin overrides
@tailwindcss/typography's exact6.0.10pin 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:
High-level design:
N/A, small change.
Tests:
Use cases covered
Unit tests
yarn install(yarn 1.22.22). The diffs contain only the vite andpostcss-selector-parserblocks and the esbuild range key, with no unrelated churn.yarn install --frozen-lockfilefrom an emptynode_modulespasses on both and installs vite 7.3.7 and postcss-selector-parser 7.1.7.ui-core-componentsyarn build: passes on vite 7.3.7, anddist/is byte-identical to the unmodified2.0build, CSS included.2.0has no core-components test script.openmetadata-uiTailwind output: I compiledsrc/styles/tailwind.css(typography plugin, full@sourcescan, 53,808 candidates) through@tailwindcss/nodebefore and after. The output is byte-identical (337,080 bytes).openmetadata-uiproduction build on vite 7.3.7:vite buildpasses (14,178 modules, exit 0). I generated the git-ignored ANTLR parser with ANTLR 4.9.2, the version theantlr44.9.2 runtime needs, and ranparse-schemafirst, asbuild-checkdoes.Backend integration tests
Playwright (UI) tests
Not run. vite is a build and dev-server tool, and
postcss-selector-parserruns only inside typography while the CSS is built, where the output is byte-identical (see above).2.0has no Playwright impact planner. #35937 ran the parser pin through CI onmain.Manual testing performed
N/A, no runtime code path changes.
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable defects were found.Summary
Updates both UI packages on
2.0tovite7.3.7 and forcespostcss-selector-parser7.1.7.Reviews (1) · Last reviewed commit: "fix(security): patch vite and postcss-se..." · Reviewed by Greptile