CVE-2021-22540

MEDIUM
Published Apr 22, 20215y ago · Modified Jun 17, 20262w ago
6.1 CVSS 3.1
Medium
Find Similar
Published Apr 22, 2021 5y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
6.1
Exploitability
2.8
Impact
2.7
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Changed
Confidentiality Low
Integrity Low
Availability None

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-79 Cross-site Scripting Injection

Affected Products 1

VendorProductVersionRange
dartdart_software_development_kit* <2.12.3

References 2

  • github.com https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588
    PatchThird Party Advisory
  • github.com https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522
    Broken Link

Remediation

  • github.com https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588
    PatchThird Party Advisory