Skip to content

Bump vendored dompurify from 3.2.7 to 3.4.5#318354

Open
jonkoops wants to merge 1 commit into
microsoft:mainfrom
jonkoops:jonkoops/bump-dompurify-3.4.5
Open

Bump vendored dompurify from 3.2.7 to 3.4.5#318354
jonkoops wants to merge 1 commit into
microsoft:mainfrom
jonkoops:jonkoops/bump-dompurify-3.4.5

Conversation

@jonkoops
Copy link
Copy Markdown

@jonkoops jonkoops commented May 26, 2026

Updates the vendored DOMPurify copy at src/vs/base/browser/dompurify/ from 3.2.7 to 3.4.5, addressing the following CVEs:

CVE Severity Fixed in
CVE-2026-0540 Medium (6.1) 3.3.2
CVE-2026-41238 Medium (6.9) 3.4.0
CVE-2026-41239 Medium (6.8) 3.4.0
CVE-2026-41240 Medium (6.0) 3.4.0

VS Code's usage (via domSanitize.ts) does not exercise the affected code paths for most of these CVEs, as it never uses SAFE_FOR_TEMPLATES, CUSTOM_ELEMENT_HANDLING, function-form ADD_TAGS/ADD_ATTR, or FORBID_TAGS.

Fixes #313084

Fixes microsoft#313084

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Copilot AI review requested due to automatic review settings May 26, 2026 13:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the vendored DOMPurify dependency to a newer upstream release and aligns repository metadata/licensing accordingly.

Changes:

  • Bump DOMPurify from 3.2.7 to 3.4.5 (vendored JS + typings).
  • Update third-party notices and component governance manifest to reflect the new version/commit.
  • Refresh DOMPurify license/copyright attribution.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vs/base/browser/dompurify/dompurify.js Update vendored DOMPurify runtime to 3.4.5 (includes upstream security/behavior changes).
src/vs/base/browser/dompurify/dompurify.d.ts Update DOMPurify typings for 3.4.5, including config surface changes.
src/vs/base/browser/dompurify/cgmanifest.json Bump tracked DOMPurify tag/version and commit hash.
src/vs/base/browser/dompurify/dompurify.license.txt Update license header attribution details.
ThirdPartyNotices.txt Update DOMPurify version listed in third-party notices.

Comment thread src/vs/base/browser/dompurify/dompurify.js
Comment thread src/vs/base/browser/dompurify/dompurify.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update DOMPurify to v3.4.5 because current v3.2.7 has several CVEs

3 participants