Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2026-63430: Ammonia library may let attackers run JavaScript
CVE-2026-63430 · published 20 days ago
Summary
The Ammonia HTML‑cleaning library (versions before 3.3.2, 4.0.2 and 4.1.3) can incorrectly handle certain math‑related tags, allowing malicious code to be executed when a user views the cleaned page. If your application enables the math tag, annotation‑xml, and any raw‑text HTML element while blocking the encoding attribute, you should upgrade Ammonia to the fixed versions as soon as possible.
What to do
- Update debian rust-ammonia to version 4.1.3-1.
- Update ammonia to version 3.3.2.
- Update ammonia to version 4.0.2.
- Update ammonia to version 4.1.3.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | rust-ammonia | ammonia | < 3.3.2 |
| Debian:12 | debian | rust-ammonia | All versions |
| Debian:14 | debian | rust-ammonia |
< 4.1.3-1 Fix: upgrade to 4.1.3-1
|
| crates.io | – | ammonia |
< 3.3.2 >= 4.0.0, < 4.0.2 >= 4.1.0, < 4.1.3 Fix: upgrade to 3.3.2
|
Original advisory text
ammonia: mXSS via MathML `annotation-xml` encoding strip
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
- https://security-tracker.debian.org/tracker/CVE-2026-63430 Vendor Advisory
- https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c... URL
- https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c86... URL
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr URL
- https://github.com/rust-ammonia/ammonia/pull/243 URL
- https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39... URL
- https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.2 URL
- https://ivan09999.github.io/ammonia-mxss URL
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.2 URL
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.3 URL
- https://github.com/rust-ammonia/ammonia/pull/244 URL
- https://github.com/rust-ammonia/ammonia/pull/245 URL
- https://rustsec.org/advisories/RUSTSEC-2026-0193.html URL
- https://nvd.nist.gov/vuln/detail/CVE-2026-63430 Vendor Advisory
- https://github.com/rust-ammonia/ammonia Product
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
7.5
High
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published15 Oct 2026
Updated4 Nov 2026
First seen15 Oct 2026
Sources
CVE-2026-63430 · NVD
CVE-2026-63430 · MITRE
DEBIAN-CVE-2026-63430 · OSV
GHSA-9jh8-v38h-cvhr · OSV
Track software like this
Free during beta