Medium severity6.1NVD Advisory· Published Apr 22, 2021· Updated Jun 17, 2026
CVE-2021-22540
CVE-2021-22540
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
3- cpe:2.3:a:dart:dart_software_development_kit:*:*:*:*:*:*:*:*Range: <2.12.3
- Google LLC/Dart SDKv5Range: stable
Patches
Vulnerability mechanics
References
2- github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588nvdPatchThird Party Advisory
- github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522nvdBroken Link
News mentions
0No linked articles in our index yet.