# CVE-2020-8923: XSS in Dart

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-03-26 · Modified: 2024-08-04
- Record: https://cvemate.com/vulnerability/CVE-2020-8923 · JSON: https://cvemate.com/vulnerability/CVE-2020-8923/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.324%, percentile 27.458%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- dart dart\_software\_development\_kit: \< 2.7.2 \| 2.8.0:dev0.0 \| 2.8.0:dev1.0 \| 2.8.0:dev10.0 \| 2.8.0:dev11.0 \| 2.8.0:dev12.0 \| 2.8.0:dev13.0 \| 2.8.0:dev14.0 \| 2.8.0:dev15.0 \| 2.8.0:dev16.0 \| 2.8.0:dev2.0 \| 2.8.0:dev3.0 \| 2.8.0:dev4.0 \| 2.8.0:dev5.0 \| 2.8.0:dev6.0 \| 2.8.0:dev7.0 \| 2.8.0:dev8.0 \| 2.8.0:dev9.0
- google dart sdk: ≥ stable, ≤ 2.7.1 \| ≥ dev, ≤ 2.8.0-dev.16.0

## References

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

---

Data as of 2026-12-05T03:32:01.352Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
