Bad validation logic in the Dart SDK versions prior to 2.12.3 allow an attacker to use an XSS attack via DOM clobbering. The validation logic in dart:html for creating DOM nodes from text did not sanitize properly when it came across template tags.
Conclusion & alert: CVE-2021-22540 is rated Moderate Risk (40.2/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.23%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-05 | 0.36% | 0.23% | -0.13% |
| 2 | 2025-11-21 | 0.24% | 0.36% | +0.12% |
| 3 | 2025-11-18 | — | 0.24% | — |
Full EPSS history (12 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
| 4.3 | 2.0 | MEDIUM |
|
8.6 | 2.9 | [email protected] |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| dart | dart_software_development_kit | < 2.12.3 | cpe:2.3:a:dart:dart_software_development_kit:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588 | Patch Third Party Advisory |
| https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522 | Broken Link |