What is CVE-2026-65902?
CVE-2026-65902 is a vulnerability in DOMPurify versions prior to 3.4.7, where direct references to module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets are passed to uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags/data.allowedAttributes when sanitize is called without an explicit config. This allows attackers to manipulate the global allowed tags/attributes lists through these hooks, potentially enabling XSS attacks.
Azərbaycanca: CVE-2026-65902 DOMPurify kitabxanasında 3.4.7 öncəsi versiyalarda aşkarlanan bir boşluqdur. Təmizləmə zamanı xüsusi konfiqurasiya təyin edilmədikdə, modul səviyyəsindəki DEFAULT_ALLOWED_TAGS və DEFAULT_ALLOWED_ATTR dəstlərinə birbaşa istinadlar uponSanitizeElement və uponSanitizeAttribute qarmaqlarına ötürülür. Bu, zərərli tərəflərin bu qarmaqlar vasitəsilə qlobal icazə verilən teq/atribut siyahılarını dəyişdirərək XSS hücumları həyata keçirməsinə imkan yarada bilər.
Related CVEs
link basis: same weakness class CWE-79
FAQ2
Which versions of DOMPurify are affected by CVE-2026-65902?
DOMPurify versions prior to 3.4.7 are vulnerable.
What can an attacker achieve by exploiting CVE-2026-65902?
An attacker can manipulate the global allowed tags/attributes lists through uponSanitizeElement and uponSanitizeAttribute hooks, potentially enabling XSS attacks.
See also6
This explainer is AI-written from source data — skopnix's own reporting on this CVE; CVSS scores, vendors and versions are never invented. See NVD for the official record.