GitHub Advisoryadvisory · crates.io

GHSA-m6mh-2hw2-555x Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

MEDIUM Published 2026-09-29 Modified 2026-09-29 Official page ↗
Aliases
CVE-2026-102342
Ecosystem
crates.io
Packages
ammonia
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2026-09-29

Affected packages

• crates.io ammonia: < 3.3.3 → fixed in 3.3.3 • crates.io ammonia: >= 4.0.0, < 4.0.3 → fixed in 4.0.3 • crates.io ammonia: >= 4.1.2, < 4.1.4 → fixed in 4.1.4

Description

The following SVG will produce a link with a `javascript` scheme. If the user clicks this link, they will run it. ```svg Click set ``` Impact Allows stored XSS in applications that allow the `animate` and `set` tags. Patches Fixed in 3.3.3, 4.0.3, and 4.1.4 Workarounds Do not enable the `animate` or `set` tags.

Related

Alias · CVE (1)

  • CVE-2026-102342 ammonia is a Rust library for repairing and securing untrusted HTML. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References