CVEvulnerability
CVE-2021-22540
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-04-22
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-79
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.
Affected configurations
• dart dart software development kit (< 2.12.3)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588 Patch, Third Party Advisory
- https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522 Broken Link
- https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588 Patch, Third Party Advisory
- https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522 Broken Link