CVE-2026-63430Rust Ammonia Ammonia cross-site scripting (XSS)
CVSS score
6.3
Medium
CVSS 4.0 from github.com
Exploit probability (EPSS)
0.56%
0.56% chance of exploitation in the next 30 days, higher than 47.2% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running rust-ammonia Ammonia and compare its version with the affected versions.
Update to a fixed version
- Update Ammonia to 3.3.2, 4.0.2, 4.1.3 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| rust-ammonia Ammonia | < 3.3.2 · >= 4.0.0, < 4.0.2 · >= 4.1.0, < 4.1.3 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-63430 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.6% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-63430?
CVE-2026-63430 has a CVSS 4.0 base score of 6.3 (medium).
Which versions are affected?
Rust Ammonia Ammonia (< 3.3.2; >= 4.0.0, < 4.0.2; >= 4.1.0, < 4.1.3)
Is there a patch for CVE-2026-63430?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca
- github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31
- github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274
- github.com/rust-ammonia/ammonia/pull/243
- github.com/rust-ammonia/ammonia/pull/244
- github.com/rust-ammonia/ammonia/pull/245
- github.com/rust-ammonia/ammonia/releases/tag/v3.3.2
- github.com/rust-ammonia/ammonia/releases/tag/v4.0.2
- github.com/rust-ammonia/ammonia/releases/tag/v4.1.3
- github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr
- ivan09999.github.io/ammonia-mxss
- rustsec.org/advisories/RUSTSEC-2026-0193.html
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.