Skip to content

fix(security): patch undici, fast-uri and serialize-javascript - #36199

Merged
harsh-vador merged 1 commit into
mainfrom
fix/dependabot-undici-fast-uri-serialize-oct26
Oct 26, 2026
Merged

harsh-vador merged 1 commit into
mainfrom
fix/dependabot-undici-fast-uri-serialize-oct26

Conversation

@harsh-vador

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Part of open-metadata/openmetadata-collate#7792. Closes all 11 open Dependabot alerts with a patched version except @tiptap/core #713, which needs a major upgrade. Every change is a patch bump in resolutions, a range, or the lockfile. No source files change.

Package From → To Alerts Where
undici 6.29.0 → 6.29.1 #788 (high): GHSA-xjj6-f33q-929c openmetadata-ui (dev tooling)
undici 7.30.0 → 7.30.1 #781 (high): same advisory ui-core-components (lock only; via jsdom, test environment)
fast-uri 3.1.8 → 3.1.9 #782–#785, #775–#778: GHSA-w74x-v6f9-j3xg, GHSA-wjr9-j795-jxcr (medium), GHSA-xhq7-xmqj-769h, GHSA-333x-w4r6-6crp (low) openmetadata-ui, ui-core-components (resolutions)
serialize-javascript 7.0.5 → 7.1.4 #786 (low): GHSA-m5mm-p8h7-m29v openmetadata-ui resolution

This supersedes Dependabot's #36159, which bumps only undici in openmetadata-ui.

fast-uri runs in the browser, through Ajv validation of the JSON-schema forms. 3.1.9 changes one behavior that matters here. Without a base URI, a relative reference keeps its leading ../ segments: normalize("../../type/entityReference.json") now returns the input, where 3.1.8 returned type/entityReference.json. Resolution against an absolute $id is unchanged. The schemas the UI hands to Ajv contain no relative $ref (src/jsons and public/jsons have none after parse-schema), so the change does not reach them. Collate has compiled these same forms with fast-uri 3.1.9 since openmetadata-collate#7626 (2.0, 2026-10-21) and #7805 (main, 2026-10-23).

serialize-javascript. Its only consumer is oidc-client, and none of the bundles oidc-client ships (lib/oidc-client*.js) references it, so it never reaches the browser bundle. I pinned 7.1.4 rather than 7.1.3, because 7.1.4 also fixes methods that contain nested functions.

Companion Collate PR: open-metadata/openmetadata-collate#7848 (undici, serialize-javascript, and electron in collate-desktop). 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: openmetadata-ui was regenerated with yarn install (yarn 1.22.22), and only the three target blocks change. In ui-core-components, yarn also split the unrelated string-width-cjs / strip-ansi-cjs alias entries, so I applied only the fast-uri and undici blocks onto main's lock. The undici 7.30.1 integrity matches npm's. yarn install --frozen-lockfile from an empty node_modules passes on both. The installs ran with --ignore-engines, because the newest node 22 on my machine is below the >=22.23.4 engine; that changes no resolution.
  • fast-uri 3.1.8 vs 3.1.9, differential check: 140 calls (parse, normalize, serialize, resolve against three bases, and equal) over 20 URIs of the kinds Ajv handles: $schema and $id URLs, OpenMetadata schema URLs, #/definitions pointers, relative refs, URNs, file:, IPv6, IDN, userinfo and ports. The only differences are the three no-base cases for ../../type/entityReference.json described above.
  • openmetadata-ui Jest, Ajv and RJSF suites: FormBuilderV1.test.tsx, ConnectionConfigForm.schema-render.test.tsx and McpApplicationConfiguration.test.tsx pass 49/49 on 3.1.9, the same as on 3.1.8.
  • ui-core-components:
    • vite build passes, and no fast-uri code is in dist/.
    • vitest run: 922 passed, 8 failed.
    • 6 of the failures are the components/application/tag/* › should render a tooltip trigger when tooltip is passed tests, which also fail on main.
    • The other 2 are in autocomplete.test.tsx. That file passes 24/24 in 5 of 5 isolated runs. It is load-sensitive under the full suite, and was flaky the same way on unmodified main on 2026-10-23.

Backend integration tests

  • Not applicable (no backend API changes). make java_affected: no Java tests are impacted.

Playwright (UI) tests

Not run. make playwright_affected maps package.json / yarn.lock to the canary and smoke specs (an impact-map gap; the merge queue runs the full suite). undici is dev and test tooling, serialize-javascript never reaches the bundle, and for fast-uri the one behavior change cannot reach the UI's dereferenced schemas (see above).

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 regression was found.

Summary

Updates dependency resolutions and lock entries without changing application code.

  • The UI projects now resolve patched JavaScript package versions.

Acknowledged scope: harsh-vador explicitly defers the @tiptap/core alert because it requires a major upgrade. The author also identifies the reported tooltip and autocomplete test failures as pre-existing.

Reviews (1) · Last reviewed commit: "fix(security): patch undici, fast-uri an..." · Reviewed by Greptile

- openmetadata-ui: undici ^6.28.1 -> ^6.29.1 (#788), fast-uri
  3.1.8 -> 3.1.9 (#782-#785), serialize-javascript 7.0.5 -> 7.1.4 (#786)
- ui-core-components: fast-uri 3.1.8 -> 3.1.9 (#775-#778), undici
  7.30.0 -> 7.30.1 (#781, lock only)
@harsh-vador
harsh-vador requested a review from a team as a code owner October 26, 2026 05:44
@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 26, 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 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Updating fast-uri changes no-base relative-reference normalization, which could alter UI schema resolution if such references are supplied; current schemas lack them.

Patches undici, fast-uri, and serialize-javascript to fixed versions via resolutions and lockfile updates to close 10 Dependabot alerts, with no source file changes. 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 added the safe to test Add this label to run secure Github workflows on PRs label Oct 26, 2026
@harsh-vador harsh-vador self-assigned this Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ Bundle Runtime Check

A route chunk loads but one of its chunks still exports undefined: a chunking change broke module initialisation. Run yarn build && yarn bundle:runtime locally.


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.66% (130671/164026) 66.2% (46076/69598) 69.08% (26115/37800)

@sonarqubecloud

Copy link
Copy Markdown

@harsh-vador
harsh-vador enabled auto-merge October 26, 2026 06:43
@harsh-vador
harsh-vador added this pull request to the merge queue Oct 26, 2026
harsh-vador added a commit that referenced this pull request Oct 26, 2026
…6199) (#36201)

- openmetadata-ui: undici ^6.28.0 -> ^6.29.1 and serialize-javascript
  7.0.5 -> 7.1.4. fast-uri is already 3.1.9 on 2.0.
Merged via the queue into main with commit 095c4e7 Oct 26, 2026
117 of 125 checks passed
@harsh-vador
harsh-vador deleted the fix/dependabot-undici-fast-uri-serialize-oct26 branch October 26, 2026 07:44
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