CVE-2020-8923 XSS in Dart
An attacker can inject malicious HTML or JavaScript into Dart applications via DOM Clobbering, bypassing sanitization and potentially executing arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2020-8923?
CVE-2020-8923 is a medium-severity cross-site scripting vulnerability in Google Dart SDK, published on 26 Mar 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
An improper HTML sanitization in Dart versions up to and including 2.7.1 and dev versions 2.8.0-dev.16.0, allows an attacker leveraging DOM Clobbering techniques to skip the sanitization and inject custom html/javascript (XSS). Mitigation: update your Dart SDK to 2.7.2, and 2.8.0-dev.17.0 for the dev version. If you cannot update, we recommend you review the way you use the affected APIs, and pay special attention to cases where user-provided data is used to populate DOM nodes. Consider using Element.innerText or Node.text to populate DOM elements.
Weakness: CWE-79
Which versions are affected by CVE-2020-8923?
It affects 1 product.
Products include Dart Dart Software Development Kit.
How do I fix CVE-2020-8923?
No fix has been published for CVE-2020-8923 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-8923 being exploited?
There is no known exploitation of CVE-2020-8923 in the wild and no public exploit code.
Other vulnerabilities in Google Dart SDK
- CVE-2022-3095 Incorrect parsing of the backslash characters in Dart library
- CVE-2021-22568 Dart - Publishing to third-party package repositories may expose pub.dev credentials
- CVE-2026-27704 Dart SDK and Flutter SDK have Zip slip in Dart Pub package extraction
- CVE-2022-0451 Auth bypass in Dark SDK
- CVE-2021-22540 XSS in Dart SDK
Sources
Also known as GHSA-hfq3-v9pv-p627.