cvelo
P3 · MediumCVSS 6.1EPSS 0.5%

DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS

  • CVE-2026-140391
  • GHSA-94h2-9755-qfgp
  • GHSA-qm7q-q8h9-jg8q
  • EUVD-2026-140252

Description

DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • cure53 DOMPurify

    Affected versionsFixed in
    before 3.4.183.4.18
  • dompurifynpm

    Affected versionsFixed in
    before 3.4.183.4.18

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.