# CVE-2026-65898: DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-18T14:27:37.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-cmwh-pvxp-8882
- Weaknesses: CWE-79, CWE-471, CWE-665
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an uponSanitizeAttribute hook, allowing the hook to permanently mutate the shared allowlist. Attackers can register a hook that conditionally allows dangerous attributes like onerror for trusted elements, then submit untrusted content that inherits the polluted allowlist and executes event handlers as stored XSS.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: before 3.4.11 (not affected: 3.4.11)
- dompurify (npm): before 3.4.11

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- VulnCheck: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-cmwh-pvxp-8882> (exploit, third-party-advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/dompurify-before-permanent-attribute-allowlist-pollution-via-setconfig> (third-party-advisory)
- <https://github.com/cure53/DOMPurify/pull/1482> (web)
- <https://github.com/cure53/DOMPurify/commit/011bc3b2fcc4be17aa76f9030e8668207717acb9> (web)
- <https://github.com/cure53/DOMPurify> (package)
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.11> (web)

## Sources

- CVE List: [CVE-2026-65898](https://www.cve.org/CVERecord?id=CVE-2026-65898), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-cmwh-pvxp-8882](https://github.com/advisories/GHSA-cmwh-pvxp-8882), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-65898](https://nvd.nist.gov/vuln/detail/CVE-2026-65898), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-65898 · Whole record: https://cve.day/CVE-2026-65898.json · Rebuilt by cve.day 2026-11-25T22:59:29.922Z
