Vulnerability

CVE-2026-102342

mediumCVSS 3.1 5.4Published 13 Oct 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd94…
  • github.com /rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662…
  • github.com /rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d3…
  • github.com /rust-ammonia/ammonia/pull/250
  • github.com /rust-ammonia/ammonia/pull/251
  • github.com /rust-ammonia/ammonia/pull/252
  • github.com /rust-ammonia/ammonia/releases/tag/v3.3.3
  • github.com /rust-ammonia/ammonia/releases/tag/v4.0.3
  • github.com /rust-ammonia/ammonia/releases/tag/v4.1.4
  • github.com /rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-55…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning