Skip to content

fix(security): patch storybook and dompurify on 2.0 (backport #36072) - #36110

Merged
harsh-vador merged 1 commit into
2.0from
fix/dependabot-storybook-dompurify-2.0
Oct 23, 2026
Merged

harsh-vador merged 1 commit into
2.0from
fix/dependabot-storybook-dompurify-2.0

Conversation

@harsh-vador

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Part of open-metadata/openmetadata-collate#7792. Backports #36072 to 2.0. Only package ranges and the lockfile blocks of these packages change. No source files change.

Package 2.0 before → after Advisories Where
storybook, @storybook/* (8 direct, 25 installed) 8.6.18 → 8.6.19 GHSA-f2ph-cmg5-wxc8 (critical) ui-core-components (dev only)
dompurify 3.4.13 → 3.4.17 GHSA-cg2g-xh64-v4q7 (critical), GHSA-mrv2-3pqr-j5jr (high), GHSA-c6gr-qvv4-5v3f (low), plus the 3.4.14–3.4.16 fixes 2.0 never received openmetadata-ui

Difference from #36072: on 2.0, openmetadata-ui resolves dompurify 3.4.13, not 3.4.16, so this jump spans four patch releases. I compared 3.4.13 directly against 3.4.17 (see Tests).

The UI calls sanitize() with the default profile (RichTextStringUtils) and with ADD_TAGS: ['block-math-equation'] / ADD_ATTR: ['math_equation', 'isediting'] (getSanitizeContent). The 3.4.17 fixes are in modes the UI does not use.

Companion Collate backport: open-metadata/openmetadata-collate#7823. 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 28 Storybook blocks and the dompurify block, with no unrelated churn. yarn install --frozen-lockfile from an empty node_modules passes on both. All 25 installed @storybook/* packages and storybook are on 8.6.19, and dompurify is on 3.4.17. 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.
  • ui-core-components build: vite build passes, and dist/ is byte-identical to the unmodified 2.0 build. 2.0 has no core-components test script.
  • Storybook 8.6.19: storybook build succeeds, with the same 272 output files and the same 359 stories in index.json as on 8.6.18.
  • dompurify 3.4.13 vs 3.4.17, differential check: I ran both versions in jsdom over 31 inputs, each with both configs the UI uses (62 cases). Output is byte-identical in every case. The inputs were real rich-text shapes (headings, lists, task lists, tables, code blocks, mentions, <#E::…> entity links, images, block-math-equation, SVG, MathML) plus XSS and mXSS payloads, DOM clobbering, and a block-math-equation carrying onclick and a nested img onerror.
  • openmetadata-ui Jest: SanitizedInput.test.tsx, StringUtils.test.ts and sanitize.utils.test.ts pass 83/83 on 3.4.17, the same as on 3.4.13.

Backend integration tests

  • Not applicable (no backend API changes).

Playwright (UI) tests

Not run. Storybook is dev only. dompurify ships in the bundle, but 3.4.17 produces byte-identical output to 3.4.13 for both configs the UI uses (see above). 2.0 has no Playwright impact planner.

Manual testing performed

N/A, no runtime code path changes.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This dependency-only update appears safe to merge.

Summary

Updates two frontend dependencies on 2.0:

  • The component project uses Storybook 8.6.19 for its stories.
  • The main UI sanitizes HTML with DOMPurify 3.4.17.

Both manifests match their updated lockfiles. No actionable issues were found. Builds and tests were not run during this review.

Reviews (1) · Last reviewed commit: "fix(security): patch storybook and dompu..." · Reviewed by Greptile

- ui-core-components: storybook and @storybook/* 8.6.18 -> 8.6.19
  (GHSA-f2ph-cmg5-wxc8 critical, dev only)
- openmetadata-ui: dompurify 3.4.13 -> 3.4.17 (GHSA-cg2g-xh64-v4q7,
  GHSA-mrv2-3pqr-j5jr, GHSA-c6gr-qvv4-5v3f, plus the 3.4.14-3.4.16
  fixes 2.0 never received)
@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 23, 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!

@harsh-vador harsh-vador self-assigned this Oct 23, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 23, 2026
@gitar-bot

gitar-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Updating DOMPurify in the UI may alter HTML sanitization, potentially changing which rich-text content is stripped or rendered.

Backports the storybook 8.6.19 and dompurify 3.4.17 security patches to the 2.0 branch, changing only package ranges and lockfile blocks with no source 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 enabled auto-merge (squash) October 23, 2026 13:07
@harsh-vador
harsh-vador merged commit 041f296 into 2.0 Oct 23, 2026
78 of 88 checks passed
@harsh-vador
harsh-vador deleted the fix/dependabot-storybook-dompurify-2.0 branch October 23, 2026 13:10
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.33% (82957/121397) 53.23% (51387/96521) 53.97% (15281/28311)

@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