CVE-2026-63430
ammonia: mXSS in ammonia via MathML `annotation-xml` encoding strip
Also known as GHSA-9jh8-v38h-cvhr, RUSTSEC-2026-0193
Mitigation
- Upgrade ammonia to one of 3.3.2, 4.0.2, 4.1.3 (or later in the same release line).
Who should check
- Projects that depend on crates.io package ammonia (< 3.3.2)
- Anyone running rust-ammonia ammonia < 3.3.2; >= 4.0.0, < 4.0.2; >= 4.1.0, < 4.1.3
Vulnerability facts
- Affected
- ammonia < 3.3.2
- Fixed in
- 3.3.2, 4.0.2, 4.1.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.74% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-79
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io ammonia | < 3.3.2 | 3.3.2, 4.0.2, 4.1.3 | osv |
| rust-ammonia ammonia | < 3.3.2; >= 4.0.0, < 4.0.2; >= 4.1.0, < 4.1.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-63430. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-63430.md Affected: ammonia < 3.3.2 Fixed in: 3.3.2, 4.0.2, 4.1.3 Steps: 1. Search this machine and project for ammonia (crates.io), rust-ammonia ammonia: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/rust-ammonia/ammonia/pull/243
- https://github.com/rust-ammonia/ammonia/pull/244
- https://github.com/rust-ammonia/ammonia/pull/245
- https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca
- https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31
- https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274
FAQ
Is CVE-2026-63430 being exploited?
There is no confirmed exploitation: CVE-2026-63430 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-63430?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-63430?
ammonia < 3.3.2.
Is there a fix for CVE-2026-63430?
Yes. Fixed in 3.3.2, 4.0.2, 4.1.3. Upgrade ammonia to one of 3.3.2, 4.0.2, 4.1.3 (or later in the same release line).
How do I check if I'm affected by CVE-2026-63430?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.