Skip to main content
CVE-2026-0540VulnerabilityPublished Updated

Node dompurify: DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 729097f, contain a cross-site

Affects node-dompurifySource GCVE Database

0
Authoritative record:CVE-2026-0540· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium.

Data as of 27 Oct 2026, 06:42 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10node-dompurifypkg:deb/ubuntu/node-dompurify?arch=source&distro=stonkingOther threatsAffected
  • 3.3.3+dfsg-1 – 3.4.13+dfsg-2
6 affected builds
Fixed in–
Ubuntu 26.04 LTSnode-dompurifypkg:deb/ubuntu/node-dompurify?arch=source&distro=resoluteOther threatsAffected
  • =3.1.7+dfsg+~3.0.5-2
  • =3.3.3+dfsg-1
Fixed in–
Ubuntu 25.10node-dompurifypkg:deb/ubuntu/node-dompurify?arch=source&distro=questingOther threatsAffected
  • =3.1.7+dfsg+~3.0.5-1
  • =3.1.7+dfsg+~3.0.5-2
Fixed in–
Ubuntu 24.04 LTSnode-dompurifypkg:deb/ubuntu/node-dompurify?arch=source&distro=nobleOther threatsAffected
  • =2.4.1+dfsg+~2.4.0-1
  • =3.0.9+dfsg+~3.0.5-1
Fixed in–
Ubuntu 22.04 LTSnode-dompurifypkg:deb/ubuntu/node-dompurify?arch=source&distro=jammyOther threatsAffected
  • =2.3.0+dfsg-2
  • =2.3.3+dfsg-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 729097f, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.

References

Community reviews

Loading reviews…