← Back to Pull requests

[CVE] Bump dompurify to 3.4.17 #2938

Closed
unknown closed this pull request without merging on Nov 04, 2026 19:14 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 16:54 UTC
Author

Description


Bumps dompurify from 3.4.16 to 3.4.17 to remediate advisories affecting dompurify <= 3.4.16.

| Advisory | Severity | Summary |
|---|---|---|
| GHSA-cg2g-xh64-v4q7 | Critical | SAFE_FOR_TEMPLATES bypass via split template expressions in attached shadow root content |
| GHSA-mrv2-3pqr-j5jr | High | IN_PLACE: hook removing a parent/sibling leaves detached subtree event handlers armed |
| GHSA-c6gr-qvv4-5v3f | Low | SMIL attributeName=href guard skipped with application/xhtml+xml |

dompurify is a transitive dependency (isomorphic-dompurify@~2.29.0 → dompurify@^3.3.0). 3.4.17 is within the existing range, so only yarn.lock changes (regenerated by yarn, not hand-edited).

Verified isomorphic-dompurify loads dompurify 3.4.17 and still strips onerror/<script>.

Issues Resolved


GHSA-cg2g-xh64-v4q7, GHSA-mrv2-3pqr-j5jr, GHSA-c6gr-qvv4-5v3f

Check List


  • New functionality includes testing.

  • - [ ] All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.

  • - [ ] New functionality has javadoc added
    - [ ] New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff
  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

    Diff: 213 lines (+159 / -54) across 2 files Reviewer: Swiddis Review duration: 13100m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 213 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.321
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2938"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.4% · Safe to merge
    14.4%