Repository navigation
fix(deps): update DOMPurify for sanitizer and document-context fixes - #19377
Conversation
|
Validation update for 107499c:
Observed sanitized results: <p>safe</p><img src="x"><a>link</a>
<svg xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" pointer-events="none" vector-effect="non-scaling-stroke"></rect></svg>
<img xmlns="http://www.w3.org/1999/xhtml" src="x">PR CI and focused rendered Orca E2E are running. Earlier manual E2E dispatch failed at checkout because I supplied a shortened SHA; it did not run application tests. The replacement uses the full SHA and verified spec filenames. Draft until these results are reviewed. |
|
Additional combined-candidate validation (local, macOS arm64): merged #19361, #19369, #19377, #19378, #19362, #19380 and #19382 into local commit
All commands used |
|
Ready for review at
The standalone 3.4.14 fix is compatible with the existing Tiptap version in these tests. It does not depend on the blocked Tiptap migration. 3.4.15 remains outside the repository's release-age gate; no policy bypass or unreviewed follow-on version is included. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe pull request updates the Merge Risk: ⚪ Minimal · up to This pins DOMPurify 3.4.14 for direct and Monaco sanitization usage, delivering the intended sanitizer hardening with aligned dependency resolution and no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description is detailed and covers the change, rationale, testing, visual proof, and review status. It does not provide the required linked issue and contains stale unchecked review items despite final validation evidence.
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A DOMPurify patch bump (3.4.13 → 3.4.14) that tightens sanitizer behavior while keeping the direct dependency, the monaco-editor override, and the lockfile on a single resolved version.
- Direct dependency pinned exact —
package.jsonmovesdompurifyfrom^3.4.13to3.4.14, matching the exact override. - Lockfile re-resolved —
pnpm-lock.yamlupdates the resolved version and integrity hash; both transitive consumers (mermaid,monaco-editor) land on 3.4.14. - Monaco override aligned —
pnpm-workspace.yamlbumpsmonaco-editor>dompurifyto 3.4.14.
Upstream 3.4.14 (released 2026-08-19) fixes allow-listed-tag bypasses and mixed HTML/XML document-context edge cases, and adds the SVG pointer-events/vector-effect attributes — additive or tightening for Orca's html/svg/svgFilters profiles in IpynbCellOutputs.tsx and MermaidBlock.tsx. Orca configures no ADD_TAGS allow-list, so the risky-tag bypass path isn't directly exercised; the only subtle parity risk is upstream's internal refactor, which the PR already flags and covers with rendered sanitizer checks. The mobile workspace keeps [email protected] only as a transitive mermaid dependency with no direct DOMPurify import, so it's correctly out of scope here.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Ready for review. Final validation evidence: 75,654 tests and Linux/Windows packaging pass; 17 rendered editor E2E tests pass; six real-browser sanitizer checks pass.
ELI5
Update DOMPurify 3.4.13 → 3.4.14 for sanitizer bypass and mixed-document-context fixes used by notebook HTML, Mermaid SVG and Monaco. Keep the direct dependency and Monaco override aligned; exactly one resolved package changes.
What Changed / Why
3.4.14 release and source comparison: repairs risky allow-listed tag bypasses and case-preserved attributes in mixed HTML/XML DOM contexts; adds SVG pointer-events/vector-effect attributes. Orca sanitizes notebook output using HTML/SVG/SVG-filter profiles and Mermaid with the SVG profile. The same maintained patch is consumed by Mermaid and the pinned Monaco dependency.
Keep exact 3.4.14 for this review. 3.4.15 was published September 6 and remains inside the workspace's three-day release-age gate; the gate is not bypassed. The update has source refactoring as well as fixes, so integration tests matter; no zero-regression guarantee is implied by the patch version.
Testing
On macOS arm64 with ORCA_BACKGROUND_LAUNCH=1:
pnpm tc: passed.pnpm run build:electron-vite: passed, including renderer boot-graph gate. Existing large-chunk warnings remain.No changes to sanitizer configuration, visual layout, remote wire frames, saved-file protocols, Git behavior or workspace assumptions. Sanitizer output tightening is intentional for hostile input; legitimate SVG behavior needs rendered coverage. Shared dependencies may reach remote-served content, so source filtering cannot be considered local-only.
Linked Issue
User-requested dependency review and full validation.
Visual Proof
N/A — dependency maintenance with no UI implementation change. Rendered checks are pending; no screenshot is claimed.
Review