Google · Dart Sdk · CVE-2021-22540
**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.