XSS in Dart SDK

6.1MEDIUM

Key Information:

Vendor

Google

Status
CVE ID
CVE ID:
CVE-2021-22540
Vendor
CVE Published:
22 April 2021
Fixed in
Fixed in:
2.12.3

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but a user must act
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Update to a fixed version
Dart SDK stable to below 2.12.3 is vulnerable
Install Dart SDK 2.12.3 or later
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Dart SDK. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (6.1).

What is CVE-2021-22540?

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.

References

Improper Input Validation in Google Chrome Affects Multiple Versions

CVE-2026-134401
GoogleChrome๐Ÿ˜„9.6CRITICAL

Use After Free Vulnerability in Google Chrome on Android

CVE-2026-130963
GoogleChrome9CRITICAL

Use After Free Vulnerability in Google Chrome for Android

CVE-2026-126846
GoogleChrome9.6CRITICAL
View more Google vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Credit

Vincenzo di Cicco
.