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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-22532Possible NLDAP Denial of Service attack Vulnerability in eD…7.5
- CVE-2021-22533Possible Insertion of Sensitive Information into Log File Vu…9.1
- CVE-2021-22535Unauthorized information security disclosure vulnerability o…4.9
- CVE-2021-22538A privilege escalation vulnerability impacting the Google Ex…8.8
- CVE-2021-22539An attacker can place a crafted JSON config file into the pr…7.8
- CVE-2021-2254Vulnerability in the Oracle Project Contracts product of Ora…8.1
- CVE-2021-22543An issue was discovered in Linux: KVM through Improper handl…7.8
- CVE-2021-22545An attacker can craft a specific IdaPro *.i64 file that will…7.8
- CVE-2021-22547In IoT Devices SDK, there is an implementation of calloc() t…7.8
- CVE-2021-22548An attacker can change the pointer to untrusted memory to po…7.8
- CVE-2021-22549An attacker can modify the address to point to trusted memor…7.8
- CVE-2021-2255Vulnerability in the Oracle Service Contracts product of Ora…8.1
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
