Repository navigation
fix(security): patch storybook and dompurify - #36072
Conversation
- ui-core-components: storybook and @storybook/* 8.6.18 -> 8.6.19 (#771, #772; GHSA-f2ph-cmg5-wxc8 critical, dev only) - openmetadata-ui: dompurify 3.4.16 -> 3.4.17 (GHSA-cg2g-xh64-v4q7, GHSA-mrv2-3pqr-j5jr, GHSA-c6gr-qvv4-5v3f; same vulnerable version Collate flags)
❌ 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 production DOMPurify changes the UI’s HTML sanitizer implementation, which could alter rendered content or filtering; Storybook bumps are development-only. Patches Storybook to 8.6.19 across the dev-only 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 |
|
…36110) - 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)



Describe your changes:
Closes the two critical Storybook alerts and patches the vulnerable
dompurifythatopenmetadata-uiresolves. Both are patch releases. Only package ranges and the lockfile blocks of these packages change. No source files change.storybook,@storybook/*(8 direct, 25 installed)ui-core-components(dev only)dompurifyopenmetadata-uidompurify. This repo shows no alert for it yet, but
openmetadata-uiresolves 3.4.16, which is in all three advisories' range, and Collate flags the same version. 3.4.17 fixes three modes:SAFE_FOR_TEMPLATESoutput with an attached shadow root;IN_PLACEsanitizing with a hook that removes a parent;attributeName=hrefunderPARSER_MEDIA_TYPE: application/xhtml+xml.The UI uses none of these.
RichTextStringUtilscallssanitize()with the default profile, andgetSanitizeContentinsanitize.utils.tsaddsADD_TAGS: ['block-math-equation']andADD_ATTR: ['math_equation', 'isediting']. Output for both is unchanged (see Tests).Still open on purpose:
@tiptap/core#713 needs the tiptap v2 → v3 migration of BlockEditor.Companion Collate PR: open-metadata/openmetadata-collate#7801 (the same
dompurifybump, plusstream-json). Each repo resolves its ownnode_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
openmetadata-uiwas regenerated withyarn install(yarn 1.22.22), and only thedompurifyblock changes. Inui-core-components, yarn also split the unrelatedstring-width-cjs/strip-ansi-cjsalias entries, so I applied only the 28 Storybook blocks ontomain's lock.yarn install --frozen-lockfilefrom an emptynode_modulespasses on both. Every installed@storybook/*package andstorybookare on 8.6.19. The installs ran with--ignore-enginesbecause the newest node 22 on my machine is below the new>=22.23.4engine; that changes no resolution.ui-core-componentsbuild:vite buildpasses, anddist/is byte-identical to themainbuild.ui-core-componentsvitest run: 924 passed, 6 failed. Baseline on unmodifiedmain: 923 passed, 7 failed. No new failures. The 6 are thecomponents/application/tag/*›should render a tooltip trigger when tooltip is passedtests, which also fail onmain. The 7th,autocomplete.test.tsx›filters the full list and inserts a match, failed once in the baseline full run and passed 4 of 4 times on its own, so it is flaky, not fixed by this change.storybook buildsucceeds, with the same 330 output files and the same 458 stories inindex.jsonas on 8.6.18.<#E::…>entity links, images,block-math-equation, SVG, MathML) plus XSS and mXSS payloads, DOM clobbering, and ablock-math-equationcarryingonclickand a nestedimg onerror.openmetadata-uiJest on dompurify 3.4.17:sanitize.utils.test.tsandStringUtils.test.tspass 141/141, the same as on 3.4.16.Backend integration tests
make java_affected: no Java tests are impacted.Playwright (UI) tests
Not run.
make playwright_affectedmapspackage.json/yarn.lockto 21 canary and smoke specs (an impact-map gap; the merge queue runs the full suite). Storybook is dev only.dompurifyships in the bundle, but 3.4.17 produces byte-identical output for both configs the UI uses (see above), and its fixes are in modes the UI never calls.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 issues were found.Summary
Updates Storybook and DOMPurify package ranges and matching lockfile entries.
Acknowledgment: harsh-vador explicitly deferred the
@tiptap/corealert to the BlockEditor v2-to-v3 migration.Reviews (1) · Last reviewed commit: "fix(security): patch storybook and dompu..." · Reviewed by Greptile