# CVE-2020-8923: XSS in Dart

- Severity: Medium 5.4 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2020-03-26T11:31:55.000Z
- Modified: 2026-06-17T03:27:11.160Z
- Weaknesses: CWE-79
- Assigned by: Google

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

(As written by CVE List.)

## Affected

- Google Dart SDK: from stable up to 2.7.1; from dev up to 2.8.0-dev.16.0
- dart dart_software_development_kit: before 2.7.2; 2.8.0

## Every score

- Google: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/dart-lang/sdk/security/advisories/GHSA-hfq3-v9pv-p627> (third-party-advisory)

## Sources

- CVE List: [CVE-2020-8923](https://www.cve.org/CVERecord?id=CVE-2020-8923), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-8923](https://nvd.nist.gov/vuln/detail/CVE-2020-8923), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8923 · Whole record: https://cve.day/CVE-2020-8923.json · Rebuilt by cve.day 2026-11-25T22:57:51.685Z
