Rust ammonia: Prior to 3.3.2, 4.0.2, and 4.1.3, applications that explicitly allow the math tag, annotation-xml, and
Affects rust-ammoniaSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium · fixed in 3.3.2 : update rust-ammonia when convenient.
Data as of 28 Oct 2026, 22:28 UTC
- Patch
- Available – fixed in 3.3.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 15 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSrust-ammoniapkg:deb/ubuntu/rust-ammonia?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSrust-ammoniapkg:deb/ubuntu/rust-ammonia?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSrust-ammoniapkg:deb/ubuntu/rust-ammonia?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
ammonia is a Rust library for repairing and securing untrusted HTML. Prior to 3.3.2, 4.0.2, and 4.1.3, applications that explicitly allow the math tag, annotation-xml, and at least one raw-text HTML element while disallowing the encoding attribute can permit mutation cross-site scripting. ammonia does not correctly implement annotation-xml's encoding-dependent MathML integration-point behavior after attribute filtering removes encoding, so the sanitizer validates a descendant under one namespace interpretation while the browser reparses the output under another. An attacker can use that namespace transition and an allowed raw-text HTML element to execute JavaScript when a user renders the sanitized output. The required tags are not enabled by default, so applications that do not explicitly allow them are not affected. This issue is fixed in versions 3.3.2, 4.0.2, and 4.1.3.
References
- ubuntu.com/security/CVE-2026-63430 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-63430 (opens in a new tab)
- rustsec.org/advisories/RUSTSEC-2026-0193.html (opens in a new tab)
- github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr (opens in a new tab)
- github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31 (opens in a new tab)
- github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274 (opens in a new tab)
- github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca (opens in a new tab)
- github.com/rust-ammonia/ammonia/pull/243 (opens in a new tab)
- github.com/rust-ammonia/ammonia/pull/244 (opens in a new tab)
- github.com/rust-ammonia/ammonia/pull/245 (opens in a new tab)
- github.com/rust-ammonia/ammonia/releases/tag/v3.3.2 (opens in a new tab)
- github.com/rust-ammonia/ammonia/releases/tag/v4.0.2 (opens in a new tab)
- github.com/rust-ammonia/ammonia/releases/tag/v4.1.3 (opens in a new tab)
- ivan09999.github.io/ammonia-mxss (opens in a new tab)