Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-22540

6.1 · MEDIUM
Published Apr 22, 2021 dart CWE-79 EPSS 0.68% (50th pctl)

Overview

CVE-2021-22540 is a medium-severity vulnerability affecting dart dart_software_development_kit. It was published on April 22, 2021 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.1, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from dart. Update dart_software_development_kit to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
dart dart_software_development_kit >= 0, < 2.12.3 Affected

Frequently Asked Questions

What is CVE-2021-22540?

CVE-2021-22540 is a medium-severity vulnerability affecting dart dart_software_development_kit. It was published on April 22, 2021 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

How severe is CVE-2021-22540?

This vulnerability has a CVSS 3.1 base score of 6.1, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-22540?

Check the references section for vendor advisories and patches from dart. Update dart_software_development_kit to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-22540?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-22540 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.