CVE-2021-22540
Summary
| CVE | CVE-2021-22540 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-04-22 15:15:00 UTC |
| Updated | 2021-04-26 20:20:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Dart | Dart Software Development Kit | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| [dart:html] Fix sanitization for HTML templates · dart-lang/sdk@ce5a1c2 · GitHub | CONFIRM | github.com | |
| github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522 | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Vincenzo di Cicco
There are currently no legacy QID mappings associated with this CVE.