CVE-2021-22540 XSS in Dart SDK
MediumCVSS 6.1
EPSS 0.68%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dart software development kit | < 2.12.3 | 2.12.3 | Fixed |
| Google Dart SDK | >= stable, < 2.12.3 | 2.12.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dart software development kit | < 2.12.3 | 2.12.3 |
| Google Dart SDK | >= stable, < 2.12.3 | 2.12.3 |
References
- github.com patch third-party-advisory
- github.com broken-link