CVE-2021-22540

medium

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.

References

https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522

https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588

Details

Source: Mitre, NVD

Published: 2021-04-22

Updated: 2026-06-17

Risk Information

CVSS v2

Base Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 6.1

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Severity: Medium

EPSS

EPSS: 0.00359