PT-2021-15133 · Google · Dart Sdk
Vincenzo Di Cicco
·
Published
2021-04-22
·
Updated
2021-04-26
·
CVE-2021-22540
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Dart SDK versions prior to 2.12.3
Description
The issue is related to bad validation logic in the Dart SDK, which allows an attacker to perform an XSS attack via DOM clobbering. Specifically, the validation logic in
dart:html for creating DOM nodes from text did not properly sanitize template tags.Recommendations
For Dart SDK versions prior to 2.12.3, update to version 2.12.3 or later to resolve the issue.
As a temporary workaround, consider restricting the use of
dart:html for creating DOM nodes from text until a patch is available.Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Dart Sdk