What’s Vulnerable › Vulnerabilities
CVE-2021-38193
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-08 · updated 2026-06-17
- Weakness: CWE-79
Description
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.
Affected products
- Ammonia Project Ammonia: before 3.1.0 — fixed in 3.1.0
How to fix
Upgrade to a fixed version: Ammonia Project Ammonia 3.1.0. Check the vendor advisory for mitigations.
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ammonia/RUSTSEC-2021-0074.md
- https://rustsec.org/advisories/RUSTSEC-2021-0074.html
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ammonia/RUSTSEC-2021-0074.md
- https://rustsec.org/advisories/RUSTSEC-2021-0074.html
Get alerted when CVE-2021-38193 or the next vulnerability affects your stack