CVE Program
CNA-CVE-2021-22540
XSS in Dart SDK
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Dart | dart | All versions before 2.12.3 (fixed in 2.12.3) |