CVE-2026-102342

ammonia allows stored XSS through unsanitized SVG animate and set attributes

  • Medium 5.4

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.

Key facts

Published
13 Oct 2026
Last changed
13 Oct 2026
Assigned by
GitHub_M
EPSS
0.272% likely to be exploited in the next 30 days, higher than 19.802% of CVEs (scores for 18 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: partial

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 5.4CVSS 3.1, Mediumfrom the CNA (GitHub_M)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
rust-ammoniaammonia
  • < 3.3.3 (affected)
  • >= 4.0.0, < 4.0.3 (affected)
  • >= 4.1.2, < 4.1.4 (affected)

Timeline

  1. 13 Oct 2026 Published

Weakness

Practice this bug class

HackZoneLabs has a hands-on lab on XSS (stored, reflected, DOM) (CWE-79).

References