ADVISORIES

Vulnerability

CVE-2026-102342

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.

8 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • AZL-108048

    CVE-2026-102342 affecting package rust 1.75.0-31

    CVE-2026-102342 Azure Linux Updated 15 October 2026
  • AZL-108051

    CVE-2026-102342 affecting package rust 1.96.1-2

    CVE-2026-102342 Azure Linux Updated 15 October 2026
  • DEBIAN-CVE-2026-102342

    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…

    CVE-2026-102342 Debian Updated 23 October 2026
  • GHSA-m6mh-2hw2-555x

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

    Moderate CVE-2026-102342 crates.io Updated 29 September 2026
  • RHVEX-CVE-2026-102342

    ammonia: ammonia: Stored cross-site scripting via SVG animation elements

    Moderate CVE-2026-102342 Red Hat Updated 24 November 2026
  • RUSTSEC-2026-0213

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

    CVE-2026-102342 crates.io Updated 30 September 2026
  • SUSEVEX-CVE-2026-102342

    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…

    Moderate CVE-2026-102342 SUSE Updated 29 October 2026
  • UBUNTU-CVE-2026-102342

    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…

    CVE-2026-102342 Ubuntu Updated 24 November 2026

References