Live threats

All CVEs / rust-ammonia

CVE-2026-102342rust-ammonia ammonia

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
—
Auth required
Yes
Published
Oct 13, 2026
Updated
Oct 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

ammonia is a Rust library for repairing and securing untrusted HTML. Prior to 3.3.3, 4.0.3, and 4.1.4, applications that allow the SVG animate or set elements can retain an animation whose attributeName targets href and whose value uses the javascript scheme. The sanitized SVG can therefore create a script-bearing link, and a user who clicks the link can execute attacker-controlled script in the application's origin, enabling stored cross-site scripting. This issue is fixed in versions 3.3.3, 4.0.3, and 4.1.4.

Original NVD text.

What to do

  1. Apply the vendor's security update for ammonia.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io ammonia < 3.3.3 3.3.3 cargo update -p ammonia --precise 3.3.3
crates.io ammonia ≥ 4.0.0 < 4.0.3 4.0.3 cargo update -p ammonia --precise 4.0.3
crates.io ammonia ≥ 4.1.2 < 4.1.4 4.1.4 cargo update -p ammonia --precise 4.1.4
crates.io ammonia ≥ 0.0.0-0 < 3.3.3 3.3.3 cargo update -p ammonia --precise 3.3.3
crates.io ammonia ≥ 4.0.0 < 4.0.3 4.0.3 cargo update -p ammonia --precise 4.0.3
crates.io ammonia ≥ 4.1.0 < 4.1.4 4.1.4 cargo update -p ammonia --precise 4.1.4

Per OSV / GitHub Advisories (GHSA-m6mh-2hw2-555x, RUSTSEC-2026-0213). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.