SecurityContext

CVE-2026-65899: DOMPurify - Stored XSS

  • Cve: CVE-2026-65899
  • Name: DOMPurify - Stored XSS
  • Description: DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is called, so a DOMPurify instance reused across trust boundaries stays bound to a previously supplied TRUSTED_TYPES_POLICY. A later caller that requests RETURN_TRUSTED_TYPE output receives a TrustedHTML object created by the old (potentially unsafe) policy rather than a clean default, which can lead to script execution at a Trusted Types sink. Passing TRUSTED_TYPES_POLICY: null on the later call also does not clear the retained policy.
  • Impact: Attackers can execute scripts via Trusted Types sinks due to retained unsafe policies, leading to potential cross-site scripting.
  • Remediation: Upgrade to version 3.4.9 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirements: Attacker needs reuse of DOMPurify instance across trust boundaries
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00413
  • Epss percentile: 0.36305
  • Assignee: [email protected]
  • Published at: 2026-07-23T14:18:04Z
  • Age in days: 124
  • Modified at: 2026-10-24T13:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-65899
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-693Protection Mechanism Failure

Public exploits

UrlSourceAdded date
https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9nvd2026-07-23

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6Patch
https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9Exploit, Third Party Advisory
https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contaminationThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
cure53:dompurify>= 3.0.0, < 3.4.9nonvd/v1/products/cure53/dompurify

Projects

RepositoryLink kindsIndexedUrl
cure53/dompurifycommit, package, security_advisoryyes/v1/repositories/cure53/dompurify

Index

  • Repositories: 1073
  • Repositories high signal: 794
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-07-23
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts