Vulnerability · Published Aug 8, 2021 · Assigned by mitre
CVE-2021-38193
Medium 6.1
In plain English
A medium-severity security flaw in the rust-ammonia package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)0.7%top 46.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-ammonia | 3.1.2-1 | DEBIAN-CVE-2021-38193 |
| Debian:13 | rust-ammonia | 3.1.2-1 | DEBIAN-CVE-2021-38193 |
| Debian:14 | rust-ammonia | 3.1.2-1 | DEBIAN-CVE-2021-38193 |
| Ubuntu:22.04:LTS | rust-ammonia | no fix listed | UBUNTU-CVE-2021-38193 |
| Ubuntu:24.04:LTS | rust-ammonia | no fix listed | UBUNTU-CVE-2021-38193 |
| Ubuntu:25.10 | rust-ammonia | no fix listed | UBUNTU-CVE-2021-38193 |
| Ubuntu:26.04:LTS | rust-ammonia | no fix listed | UBUNTU-CVE-2021-38193 |
| Ubuntu:26.10 | rust-ammonia | no fix listed | UBUNTU-CVE-2021-38193 |