CVE-2021-22540

published 22 Apr 2021 · updated 3 Aug 2024

XSS in Dart SDK

5.0MediumEPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Dart SDK 2.12.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GoogleDart SDK>=stable <2.12.32.12.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Google, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-22540 severity on Zeptric[![CVE-2021-22540](https://zeptric.io/badge/cve/CVE-2021-22540.svg)](https://zeptric.io/cve/CVE-2021-22540)