CVE-2021-38193
Incorrect handling of embedded SVG and MathML leads to mutation XSS
6.1
MEDIUM
CVSS 3.1
EPSS 0.70%
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.
How to fix CVE-2021-38193
To remediate CVE-2021-38193, upgrade the affected package to a fixed version below.
- Debian/rust-ammonia—upgrade to 3.1.2-1 or later
- —upgrade to 3.1.0 or later
- —upgrade to 2.1.3 or later
Is CVE-2021-38193 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 3.1.2-1
- >= 3.0.0, < 3.1.0
- >= 0.0.0-0, < 2.1.3, >= 3.0.0, < 3.1.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |