CVE-2021-22540
Last modified
CVE-2021-22540 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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.. EPSS estimates a 0.68% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Dart | Dart Software Development Kit | < 2.12.3 |
References
- https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588Patch, Third Party Advisory
- https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-22540?
How severe is CVE-2021-22540?
How do I fix CVE-2021-22540?
Are you affected by CVE-2021-22540?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
