CVE-2021-22540: dart dart_software_development_kit Cross-site Scripting
CVSS: 6.1v3.1MediumModified
Published 22-04-2021Last modified 03-08-2024
Vulnerability summary
CVE-2021-22540 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in dart dart_software_development_kit. EPSS estimates a 0.68% chance of exploitation in the next 30 days, higher than 51.5% of scored vulnerabilities.
CVSS score
6.1/10
010
Medium · v3.1 (NVD)EPSS score
0.68%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 22-04-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 1 source · 2 versionsMedium 6.1Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NSourcesSingle source
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:P/A:NSourcesSingle source
EPSS trend
Probability
0.68%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
0.00 pp
From 0.68% on 18-09-2026
18-09-202618-10-2026
EPSS score0.68%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Dart1 product
- dart_software_development_kit< 2.12.3
Google llc1 product
- dart sdk≥ stable, < 2.12.3
2 vendors · 2 products
References
2 links- github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588X Refsource CONFIRMPatchThird Party Advisory