Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
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.
GHSA-m6mh-2hw2-555x
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-m6mh-2hw2-555x
ammonia
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 3.3.3
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
ammonia
Source reference: /affected/1/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 4.0.3
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
ammonia
Source reference: /affected/2/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 4.1.4
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.3"
}
]
}
],
"package": {
"name": "ammonia",
"purl": "pkg:cargo/ammonia",
"ecosystem": "crates.io"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-m6mh-2hw2-555x/GHSA-m6mh-2hw2-555x.json",
"last_known_affected_version_range": "< 3.3.2"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.3"
}
]
}
],
"package": {
"name": "ammonia",
"purl": "pkg:cargo/ammonia",
"ecosystem": "crates.io"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-m6mh-2hw2-555x/GHSA-m6mh-2hw2-555x.json",
"last_known_affected_version_range": "<= 4.0.2"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "4.1.2"
},
{
"fixed": "4.1.4"
}
]
}
],
"package": {
"name": "ammonia",
"purl": "pkg:cargo/ammonia",
"ecosystem": "crates.io"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-m6mh-2hw2-555x/GHSA-m6mh-2hw2-555x.json",
"last_known_affected_version_range": "<= 4.1.3"
}
}
]- Related CVEs
- CVE-2026-102342
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #32232 · Revision 1
- Added to Heist Feed
- Publisher date