Advisory record · GHSA-m6mh-2hw2-555x

XSS in ammonia via SVG `animate` and `set` animation tags

CVSS 5.4 MediumEPSS 0.0027 · 19th percentile

Published by the GitHub Advisory Database at 21 Jul 2026, 12:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
ammoniacrates.io>=0.0.0-0, <3.3.3 || >=4.0.0, <4.0.3 || >=4.1.0, <4.1.43.3.3, 4.0.3, 4.1.4
Identifiers
GHSA-m6mh-2hw2-555x · CVE-2026-102342 · RUSTSEC-2026-0213
Weakness (CWE)
CWE-79
Published
21 Jul 2026
Updated
30 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The ammonia Rust crate, versions before 3.3.3, from 4.0.0 before 4.0.3, and from 4.1.0 before 4.1.4, can let a javascript link be produced from SVG animate and set tags, which are not sanitized as URLs. An attacker needs to supply SVG content that the application passes through ammonia, and a user must click the resulting link to run the script, leading to cross-site scripting. Upgrade to ammonia 3.3.3, 4.0.3, or 4.1.4 depending on your release line. Applications that do not explicitly allow the animate or set tags are not affected by default.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0027, the 19th percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:24 UTC First seen by agentprime
  2. 31 Oct 2026, 14:24 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.