Skip to content

fix(security): bump prosemirror-view and source-map-js past high advisories - #34810

Merged
harsh-vador merged 1 commit into
mainfrom
fix/high-vuln-prosemirror-source-map
Oct 7, 2026
Merged

harsh-vador merged 1 commit into
mainfrom
fix/high-vuln-prosemirror-source-map

Conversation

@harsh-vador

Copy link
Copy Markdown
Contributor

Describe your changes:

Closes the three open high Dependabot alerts that have a patch: #752 (prosemirror-view), #754 and #750 (source-map-js).

Package From → To Advisory Scope
prosemirror-view 1.28.2 → 1.42.6 GHSA-c8x8-7fp4-3x9w: XSS when pasting attacker HTML into the editor runtime (openmetadata-ui)
prosemirror-model 1.22.1 → 1.25.12 needed by view 1.42.x (^1.25.8) runtime
source-map-js 1.2.1 → 1.2.2 GHSA-68fv-2mgg-jv7q dev (openmetadata-ui, openmetadata-ui-core-components)

Why the prosemirror pins move rather than go away. resolutions pinned prosemirror-view to 1.28.2. That is below the ^1.41.4 / ^1.42.3 range tiptap 2.27 asks for, so tiptap was already running on an older view than it supports. Both pins stay, so tiptap still gets a single prosemirror instance. Only their versions change.

Supersedes Dependabot #34737 and #34734. They cover source-map-js only and fail CI.

How I tested

  • yarn install --frozen-lockfile passes for both UIs. The lockfile diff only touches the three packages.
  • node_modules has one copy each of prosemirror-view (1.42.6) and prosemirror-model (1.25.12).
  • Jest: every BlockEditor, RichText, FeedEditor and Editor suite passes (54 suites, 594 tests).
  • tsc --noEmit on openmetadata-ui reports exactly the same errors with the old and the new prosemirror versions. The upgrade adds no type errors.

Type of change:

  • Bug fix

Checklist:

🤖 Generated with Claude Code

…sories

prosemirror-view < 1.42.3 runs attacker JavaScript from pasted HTML
(GHSA-c8x8-7fp4-3x9w). The UI pinned it to 1.28.2 through resolutions,
below the ^1.41.4 / ^1.42.3 that tiptap 2.27 itself asks for. Move the
pin to 1.42.6, and prosemirror-model to 1.25.12 because view 1.42.x
requires model ^1.25.8. Both stay pinned so tiptap keeps one instance.

source-map-js 1.2.1 -> 1.2.2 (GHSA-68fv-2mgg-jv7q) in both UI lockfiles.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

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 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

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 7, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · The editor’s runtime dependencies jump several minor versions, changing rich-text behavior.

Bumps prosemirror-view from 1.28.2 to 1.42.6 and source-map-js from 1.2.1 to 1.2.2 to resolve three high-severity Dependabot advisories, including an XSS vulnerability in the editor. Dependency pins are updated to maintain a single prosemirror instance, and all editor test suites pass with no new type errors. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit 8453bf1098009c5db2d4a6d75cff617e84729ccf in Playwright run 37578824466, attempt 1.

✅ 0 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

⚙️ No test failures. This run failed in CI infrastructure or reporting (see Pipeline and setup failures), not because of your changes — no test action needed from you.

Pipeline and setup failures (6)

  • The build job finished with status failure.
  • Duration-aware shard planning finished with status skipped.
  • Fixture cache restoration finished with status skipped.
  • Seeded fixture preparation finished with status skipped.
  • The Playwright shard matrix was unexpectedly skipped.
  • No expected Playwright shards were declared.

Performance

⚪ Performance metrics unavailable; see the CI and reporting failures above.

Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 7, 2026
@harsh-vador harsh-vador self-assigned this Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 75%
75.84% (117750/155249) 61.72% (72570/117579) 63.03% (24206/38398)

@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

@harsh-vador
harsh-vador enabled auto-merge October 7, 2026 09:26
@harsh-vador
harsh-vador disabled auto-merge October 7, 2026 09:38
@harsh-vador
harsh-vador enabled auto-merge October 7, 2026 09:38
@harsh-vador
harsh-vador disabled auto-merge October 7, 2026 09:45
@harsh-vador
harsh-vador added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit 87425d6 Oct 7, 2026
199 of 208 checks passed
@harsh-vador
harsh-vador deleted the fix/high-vuln-prosemirror-source-map branch October 7, 2026 12:55

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.

3 participants