Advisory record · GHSA-c2j3-45gr-mqc4

DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.

CVSS 5.1 MediumEPSS 0.0022 · 12th percentile

Published by the GitHub Advisory Database at 21 Jul 2026, 19:41 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
dompurifynpm<3.4.123.4.12
Identifiers
GHSA-c2j3-45gr-mqc4 · CVE-2026-66010
Weakness (CWE)
CWE-79 · CWE-184 · CWE-693
Published
21 Jul 2026
Updated
2 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GHSA-c2j3-45gr-mqc4 affects the npm package dompurify versions before 3.4.12, with 3.4.12 given as the fixed version. When a custom element is allowed through CUSTOM_ELEMENT_HANDLING.tagNameCheck, the sanitizer skips the afterSanitizeElements hook for that element, so an attribute an application strips from normal elements can remain on it. The source says this is not a direct sanitizer bypass, and it becomes exploitable only if the application's custom element later writes that preserved value into an HTML sink such as innerHTML; upgrade to dompurify 3.4.12.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.1 Medium 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0022, the 12th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:34 UTC First seen by agentprime
  2. 31 Oct 2026, 13:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.