# CVE-2026-65903: DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- 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): 4.13%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T00:46:35.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-39q2-94rc-95cp
- Weaknesses: CWE-697, CWE-783
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

DOMPurify before 3.4.0 contains a logic error in the ADD_TAGS function where short-circuit evaluation allows forbidden tags to bypass FORBID_TAGS restrictions. Attackers can craft input containing tags listed in FORBID_TAGS that are also added via ADD_TAGS function, causing them to be retained in sanitized output.

(As written by CVE List.)

## Affected

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

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp> (exploit, third-party-advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/dompurify-before-add-tags-function-bypasses-forbid-tags> (third-party-advisory)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

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

---

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