# CVE-2026-63430: ammonia: mXSS in ammonia via MathML `annotation-xml` encoding strip

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-30T12:00:00.000Z
- Modified: 2026-10-22T14:16:23.103Z
- Also known as: GHSA-9jh8-v38h-cvhr, RUSTSEC-2026-0193
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rust-ammonia ammonia: < 3.3.2; >= 4.0.0, < 4.0.2; >= 4.1.0, < 4.1.3
- ammonia (crates.io): before 3.3.2; from 4.0.0 before 4.0.2; from 4.1.0 before 4.1.3; from 0.0.0-0 before 3.3.2

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr> (exploit, web)
- <https://github.com/rust-ammonia/ammonia/pull/243> (web)
- <https://github.com/rust-ammonia/ammonia/pull/244> (web)
- <https://github.com/rust-ammonia/ammonia/pull/245> (web)
- <https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca> (web)
- <https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31> (web)
- <https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274> (web)
- <https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.2> (web)
- <https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.2> (web)
- <https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.3> (web)
- <https://ivan09999.github.io/ammonia-mxss> (web)
- <https://rustsec.org/advisories/RUSTSEC-2026-0193.html> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63430> (advisory)
- <https://github.com/rust-ammonia/ammonia> (package)
- <https://crates.io/crates/ammonia> (package)

## Sources

- CVE List: [CVE-2026-63430](https://www.cve.org/CVERecord?id=CVE-2026-63430), CVE Terms of Use, modified 2026-10-15
- GitHub Advisory Database: [GHSA-9jh8-v38h-cvhr](https://github.com/advisories/GHSA-9jh8-v38h-cvhr), CC-BY-4.0, modified 2026-10-22
- RustSec Advisory Database: [RUSTSEC-2026-0193](https://rustsec.org/advisories/RUSTSEC-2026-0193.html), CC0-1.0, modified 2026-07-17
- NVD: [CVE-2026-63430](https://nvd.nist.gov/vuln/detail/CVE-2026-63430), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-63430 · Whole record: https://cve.day/CVE-2026-63430.json · Rebuilt by cve.day 2026-11-25T22:59:44.957Z
