p PatchFirst

CVE-2026-102342

CVE-2026-102342 · ammonia allows stored XSS through unsanitized SVG animate and set attributes

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.4 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • ammonia

    Versions
    • < 3.3.3: Affected
    • >= 4.0.0, < 4.0.3: Affected
    • >= 4.1.2, < 4.1.4: Affected

    No fix published

  • rust-ammonia Debian:12

    Versions
    • 3.2.1-1
    • 3.3.0-1
    • 4.0.0-1
    • 4.0.0-2
    • 4.0.0-3
    • 4.1.1-1
    • 4.1.2-1
    • 4.1.2-2
    • 4.1.3-1
    • 4.1.4-1
    • 4.2.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-ammonia Debian:13

    Versions
    • 4.0.0-3
    • 4.1.1-1
    • 4.1.2-1
    • 4.1.2-2
    • 4.1.3-1
    • 4.1.4-1
    • 4.2.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-ammonia Debian:14

    Versions
    • 4.0.0-3
    • 4.1.1-1
    • 4.1.2-1
    • 4.1.2-2
    • 4.1.3-1
    Affected ranges
    • ECOSYSTEM: < 4.1.4-1

    Update to 4.1.4-1

  • rust-ammonia Ubuntu:22.04:LTS

    Versions
    • 3.1.0-2
    • 3.1.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-ammonia Ubuntu:24.04:LTS

    Versions
    • 3.2.1-1
    • 3.3.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-ammonia Ubuntu:26.10

    Versions
    • 4.1.2-1
    • 4.1.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-ammonia Ubuntu:26.04:LTS

    Versions
    • 4.0.0-3
    • 4.1.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →