What’s Vulnerable › Vulnerabilities

CVE-2021-22540: XSS in Dart SDK

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.

Affected products

How to fix

Upgrade to a fixed version: Google LLC Dart SDK 2.12.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-22540 or the next vulnerability affects your stack