{ "schema_version": "1.4.0", "id": "GHSA-5325-xw5m-phm3", "modified": "2021-08-18T21:28:38Z", "published": "2021-08-25T20:55:56Z", "aliases": [ "CVE-2021-38193" ], "summary": "Cross-site Scripting in ammonia", "details": "An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N" } ], "affected": [ { "package": { "ecosystem": "crates.io", "name": "ammonia" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.0.0" }, { "fixed": "3.1.0" } ] } ] }, { "package": { "ecosystem": "crates.io", "name": "ammonia" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "2.1.3" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38193" }, { "type": "WEB", "url": "https://github.com/rust-ammonia/ammonia/pull/142" }, { "type": "PACKAGE", "url": "https://github.com/rust-ammonia/ammonia" }, { "type": "WEB", "url": "https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ammonia/RUSTSEC-2021-0074.md" }, { "type": "WEB", "url": "https://rustsec.org/advisories/RUSTSEC-2021-0074.html" } ], "database_specific": { "cwe_ids": [ "CWE-79" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2021-08-18T21:28:38Z", "nvd_published_at": "2021-08-08T06:15:00Z" } }