Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-0540

24
FAUCET Score

CVE-2026-0540 is a cross-site scripting (XSS) vulnerability affecting DOMPurify versions 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8. It allows attackers to bypass attribute sanitization by exploiting missing rawtext elements in the SAFE_FOR_XML regex, enabling injection of malicious JavaScript. This vulnerability has a CVSS score of 6.1 (MEDIUM), indicating a network-based attack with low complexity, requiring user interaction, and potentially leading to limited confidentiality and integrity impacts. The EPSS score is very low, suggesting a low probability of exploitation. Currently, there is no evidence of active exploitation, and no public exploit code (Metasploit, Nuclei, ExploitDB) is available. Community discussion and media coverage are minimal, with only one mention and one article, respectively.

Impacted Technologies

VendorProductVersion(s)CPE
>= 2.5.3, <= 2.5.8CPE match
cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
>= 3.1.3, <= 3.3.1CPE match
cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 4.0

5.3MEDIUM

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
VS Confidentiality
NONE
VS Integrity
NONE
VS Availability
NONE
SS Confidentiality
LOW
SS Integrity
LOW
SS Availability
NONE
Exploit Maturity
NOT_DEFINED
CvssVersion
4.0

Exploit Intelligence

EPSS Score
0.34%
Probability of exploitation in next 30 days
EPSS Percentile
26.5%
Percentile rank of EPSS score among Peer Group
As of 2026-07-28
Model: v2026.06.15
This CVE's current EPSS score of 0.0034 is in the 27th percentile among its peer group of 26,236 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.

Media Mentions

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (2)

npmpatch availablevia ghsa
Product: dompurifyFixed in: 3.3.2
npmpatch availablevia ghsa
Product: dompurifyFixed in: 2.5.9

Vendor Advisories (1)

npmGHSA-v2wj-7wpq-c8vvmedium

DOMPurify contains a Cross-site Scripting vulnerability

Mar 3, 2026

References

fluidattacks.com / advisories/daft
github.com / cure53/DOMPurify
Product
github.com / cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80
github.com / cure53/DOMPurify/releases/tag/3.3.2
vulncheck.com / advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml
Third Party Advisory