ADVISORIES

Vulnerability

CVE-2021-38193

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.

4 advisories report this vulnerability, across 3 ecosystems.

Medium severity All crates.io 2Debian 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2021-38193

    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.

    CVE-2021-38193 Debian Updated 23 October 2026
  • GHSA-5325-xw5m-phm3

    Cross-site Scripting in ammonia

    Moderate CVE-2021-38193 crates.io Updated 8 November 2023
  • RUSTSEC-2021-0074

    Incorrect handling of embedded SVG and MathML leads to mutation XSS

    CVE-2021-38193 crates.io Updated 8 November 2023
  • UBUNTU-CVE-2021-38193

    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.

    CVE-2021-38193 Ubuntu Updated 17 October 2026

References