CVE-2021-22540
Title: Dart SDK XSS via DOM Clobbering
XSS
Proof Of Concept
No public PoC currently indexed for CVE-2021-22540.
CWE Category
CWE-79
Published Date
Apr 22, 2021
Modified Date
Nov 21, 2024
Exploit Status
Not Found
Score
6.1
CVSS v3.1
Exploit Probability (EPSS)
0.23%
Vulnerability Summary
CVE-2021-22540: 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.
Impacted Vendors
Reference Links
https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588
https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522
https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588
https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522
CVSS v3.1
Source Entity
[email protected]
Severity
MEDIUM
6.1
Attack Vector
NETWORK
Complexity
LOW
Privileges
N/A
Interaction
REQUIRED
Confidentiality
N/A
Integrity
N/A
Availability
N/A
Scope
CHANGED
RAW VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v2.0
Source Entity
[email protected]
Severity
MEDIUM
4.3
Access Vector
N/A
Authentication
N/A
RAW VECTOR
AV:N/AC:M/Au:N/C:N/I:P/A:N
Associated Attack Patterns (CAPEC)
Total: PatternsNo specific attack patterns mapped.
Likelihood
Severity
Page /
CVE-2021-22540 Exploits & PoCs (Proof Of Concept)
No public PoCs found in our database for this CVE.
MODIFIED
Vulnerability data or affected products updated.
PUBLISHED
Vulnerability first announced in NVD.
Attack Vector Matrix
Access Vector
NETWORK
Complexity
LOW
Privileges
N/A
Interaction
REQUIRED
CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Stack
No specific products linked.