{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-22540","id":"CVE-2021-22540","title":"XSS in Dart SDK","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.","descriptionLong":"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.","published":"2021-04-22T14:15:17.000Z","updated":"2026-10-20T10:54:21.520726335Z","reserved":"2021-01-05T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Google","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Google LLC Dart SDK"],"affectedProducts":[{"vendor":"Google LLC","product":"Dart SDK","defaultStatus":null,"versions":[{"lessThan":"2.12.3","status":"affected","version":"stable","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-79"],"aliases":["GHSA-3rfv-4jvg-9522"],"references":[{"url":"https://github.com/dart-lang/sdk/security/advisories/GHSA-3rfv-4jvg-9522","tags":["x_refsource_CONFIRM","x_transferred","Broken Link","advisory"]},{"url":"https://github.com/dart-lang/sdk/commit/ce5a1c2392debce967415d4c09359ff2555e3588","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00681,"epssPercentile":0.53241,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-22540","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22540","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-22540","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-22540","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}