chore: bump dompurify CDN to 3.4.0 to fix CVE-2026-41238 and CVE-2026-41239#1905
Draft
chore: bump dompurify CDN to 3.4.0 to fix CVE-2026-41238 and CVE-2026-41239#1905
Conversation
…-41239 Bumps the dompurify jsdelivr CDN URL in the ecommerce-user-preferences example from 3.1.6 to 3.4.0, addressing two XSS bypass advisories. Note: PR #1904 (merged 2026-04-29) claimed to fix these CVEs by "pinning" DOMPurify to 3.1.6, but 3.1.6 sits inside the vulnerable range (>=3.0.1, <3.4.0). This PR performs the actual remediation. - examples/ecommerce-user-preferences/webapp/templates/index.html: dompurify@3.1.6 -> dompurify@3.4.0 CVE-2026-41238 (GHSA-v9jr-rg53-9pgp, MODERATE): Prototype Pollution to XSS via CUSTOM_ELEMENT_HANDLING fallback CVE-2026-41239 (GHSA-crv5-9vww-q3g8, MODERATE): SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps the
dompurifyjsdelivr CDN URL in theecommerce-user-preferencesexample from3.1.6to3.4.0, addressing two XSS bypass advisories flagged by Mend (VESPANG-3271, VESPANG-3201).Why this PR exists (despite #1904 being merged)
PR #1904 (merged 2026-04-29) is titled
chore: update dependencies to fix CVEsand lists CVE-2026-41238 and CVE-2026-41239 in its title and commit message. However, that PR's actual change for DOMPurify was a no-op — it kept the CDN URL atdompurify@3.1.6, which sits inside the GHSA vulnerable range (>=3.0.1, <3.4.0). The first patched version is3.4.0.This PR makes the actual remediation: a one-line CDN URL bump from
3.1.6→3.4.0.Changed Files
examples/ecommerce-user-preferences/webapp/templates/index.html— CDN URL bump:dompurify:3.1.6→3.4.0(CVE-2026-41238, CVE-2026-41239)This is the only DOMPurify reference in the repo (verified via
grep -r dompurify). No package-lock.json or yarn.lock involved — it's a CDN script tag.CVEs Addressed
Verified against the GitHub Advisory Database:
>=3.0.1, <3.4.0>=1.0.10, <3.4.0Before/after transition:
mainresolvesdompurify@3.1.6(vulnerable), this branch resolvesdompurify@3.4.0(patched). Real version change confirmed viagit diff.Implementation Notes
sanitize(html, options)API is stable across the 3.x series. The two call sites (messageContent.innerHTML = DOMPurify.sanitize(html, { USE_PROFILES: { html: true } });inapp.js) work unchanged on 3.4.0.dompurify@3.4.0/dist/purify.min.js(verified viaHEAD→ 200).Verification
grep -r 'dompurify\|DOMPurify\|purify@' .→ exactly one CDN URL, now at@3.4.0curl -sI https://cdn.jsdelivr.net/npm/dompurify@3.4.0/dist/purify.min.js→HTTP/2 200masterafter merge to confirm both CVEs clear from VESPANG-3271 / VESPANG-3201