CVE-2026-102342 PUBLISHED

ammonia allows stored XSS through unsanitized SVG animate and set attributes

Assigner: GitHub_M
Reserved: 28.09.2026 Published: 13.10.2026 Updated: 13.10.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS Score: 5.4

Product Status

Vendor rust-ammonia
Product ammonia
Versions
  • Version < 3.3.3 is affected
  • Version >= 4.0.0, < 4.0.3 is affected
  • Version >= 4.1.2, < 4.1.4 is affected

References

Problem Types

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE