Repository navigation
fix(security): patch storybook and dompurify on 2.0 (backport #36072) - #36110
Conversation
- 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)
❌ 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 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. 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:
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.storybook,@storybook/*(8 direct, 25 installed)ui-core-components(dev only)dompurify2.0never receivedopenmetadata-uiDifference from #36072: on
2.0,openmetadata-uiresolvesdompurify3.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 withADD_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:
High-level design:
N/A, small change.
Tests:
Use cases covered
Unit tests
yarn install(yarn 1.22.22). The diffs contain only the 28 Storybook blocks and thedompurifyblock, with no unrelated churn.yarn install --frozen-lockfilefrom an emptynode_modulespasses on both. All 25 installed@storybook/*packages andstorybookare 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.4engine; that changes no resolution.ui-core-componentsbuild:vite buildpasses, anddist/is byte-identical to the unmodified2.0build.2.0has no core-components test script.storybook buildsucceeds, with the same 272 output files and the same 359 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:SanitizedInput.test.tsx,StringUtils.test.tsandsanitize.utils.test.tspass 83/83 on 3.4.17, the same as on 3.4.13.Backend integration tests
Playwright (UI) tests
Not run. Storybook is dev only.
dompurifyships in the bundle, but 3.4.17 produces byte-identical output to 3.4.13 for both configs the UI uses (see above).2.0has no Playwright impact planner.Manual testing performed
N/A, no runtime code path changes.
🤖 Generated with Claude Code


Confidence Score: 5/5
This dependency-only update appears safe to merge.Summary
Updates two frontend dependencies on
2.0: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