{"id":"GHSA-5325-xw5m-phm3","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.","aliases":["CVE-2021-38193","RUSTSEC-2021-0074"],"modified":"2023-11-01T04:55:57.855458Z","published":"2021-08-25T20:55:56Z","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"},"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"}],"affected":[{"package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-5325-xw5m-phm3/GHSA-5325-xw5m-phm3.json"}},{"package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-5325-xw5m-phm3/GHSA-5325-xw5m-phm3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}