Skip to content

fix(security): bump dompurify to patch XSS vulnerability - #638

Merged
hitesh-shetty-cstk merged 2 commits into
mainfrom
fix/dompurify-xss-in-place-hook-removal
Aug 24, 2026
Merged

fix(security): bump dompurify to patch XSS vulnerability#638
hitesh-shetty-cstk merged 2 commits into
mainfrom
fix/dompurify-xss-in-place-hook-removal

Conversation

@hitesh-shetty-cstk

Copy link
Copy Markdown
Contributor

What

DOMPurify before 3.4.13 has an XSS bypass (GHSA-55q2-fjhq-7xh7): IN_PLACE sanitization combined with element-removal hooks can leave a detached DOM subtree with executable event handlers, allowing script execution despite sanitization.

Fix

Bumped the dompurify dependency from ^3.4.12 to ^3.4.13, the first patched release.

Verification

Confirmed via the GitHub Advisory Database (GHSA-55q2-fjhq-7xh7) that 3.4.13 is the first patched release. Version-string bump only, no code changes; no build/test suite run.


🤖 Generated with Claude Code


Generated by Claude Code

DOMPurify before 3.4.13 has an XSS bypass where IN_PLACE sanitization
combined with element-removal hooks can leave a detached DOM subtree
with executable event handlers (GHSA-55q2-fjhq-7xh7).

Bumps the dependency from ^3.4.12 to ^3.4.13, the first patched release.

Co-Authored-By: Claude <noreply@anthropic.com>
@hitesh-shetty-cstk
hitesh-shetty-cstk requested a review from a team as a code owner August 20, 2026 06:03
@snyk-io

snyk-io Bot commented Aug 20, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 1 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.36% 2524 / 3747
🔵 Statements 66.22% 2563 / 3870
🔵 Functions 64.56% 450 / 697
🔵 Branches 61.9% 1529 / 2470
File CoverageNo changed files found.
Generated in workflow #891 for commit ec144b9 by the Vitest Coverage Report Action

Clears 9 advisories (8 high, 1 moderate) in postcss, vite, and ws.
Lockfile only; no package.json ranges changed.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@kirtesh-cstk kirtesh-cstk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@shivamfl shivamfl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hitesh-shetty-cstk
hitesh-shetty-cstk merged commit 5124540 into main Aug 24, 2026
10 checks passed
@hitesh-shetty-cstk
hitesh-shetty-cstk deleted the fix/dompurify-xss-in-place-hook-removal branch August 24, 2026 12:32
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.

4 participants