{"id":"CVE-2021-38193","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.","aliases":["GHSA-5325-xw5m-phm3","RUSTSEC-2021-0074"],"modified":"2026-04-10T04:36:30.896009Z","published":"2021-08-08T06:15:09.043Z","references":[{"type":"ADVISORY","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ammonia/RUSTSEC-2021-0074.md"},{"type":"FIX","url":"https://rustsec.org/advisories/RUSTSEC-2021-0074.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rust-ammonia/ammonia","events":[{"introduced":"0"},{"fixed":"892da8a7f16b7af34c95394b98b5d0ca974ae9cd"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.1.0"}]}}],"versions":["v0.2.0","v0.4.0","v0.5.0","v0.6.0","v0.7.0","v1.0.0","v1.0.0-rc1","v1.0.0-rc2","v1.0.0-rc3","v1.0.1","v1.1.0","v1.2.0","v2.0.0","v2.1.0","v2.1.1","v2.1.2","v2.1.3","v3.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38193.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}