NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

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

mediumCVSS 3.1 5.4GHSA-m6mh-2hw2-555x

The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it. 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.

Published Sep 29, 2026

Affected packages

ammonia

Ecosystem
Rust (crates.io)
Affected
< 3.3.2
Fixed in
3.3.3
Check
cargo tree -i ammonia

ammonia

Ecosystem
Rust (crates.io)
Affected
>= 4.0.0, <= 4.0.2
Fixed in
4.0.3
Check
cargo tree -i ammonia

ammonia

Ecosystem
Rust (crates.io)
Affected
>= 4.1.2, <= 4.1.3
Fixed in
4.1.4
Check
cargo tree -i ammonia

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.

<svg xmlns="http://www.w3.org/2000/svg">
  
    <set attributeName="href" to="javascript:alert('SET_XSS')"></set>
    <text y="30">Click set</text>
  
</svg>

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.

Credited to koyokr.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Rust (crates.io) vulnerabilities

All Rust (crates.io) entries