CVE-2021-22540
CVSS V2 Medium 4.3
CVSS V3 Medium 6.1
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.
Overview
- CVE ID
- CVE-2021-22540
- Assigner
- cve-coordination@google.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-04-22T15:15:07
- Last Modified Date
- 2021-04-26T20:20:32
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:dart:dart_software_development_kit:*:*:*:*:*:*:*:* | 1 | OR | 2.12.3 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 4.3
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 6.1
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522 | Broken Link |
https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588 | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-22540 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22540 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:14:06 | Added to TrackCVE | |||
2022-12-06 02:15:57 | security@google.com | cve-coordination@google.com | CVE Assigner | updated |
2022-12-06 02:15:57 | 2021-04-22T15:15Z | 2021-04-22T15:15:07 | CVE Published Date | updated |
2022-12-06 02:15:57 | 2021-04-26T20:20:32 | CVE Modified Date | updated | |
2022-12-06 02:15:57 | Analyzed | Vulnerability Status | updated |