## ammonia: mXSS  via MathML `annotation-xml` encoding strip

- 種別: advisory
- 重大度: medium
- 関連技術: rust
- CVE: CVE-2026-63430
- 公開日時: 2026-10-22T14:06:10.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-9jh8-v38h-cvhr)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-9jh8-v38h-cvhr

影響: rust:ammonia < 3.3.2 → 3.3.2, rust:ammonia >= 4.0.0, < 4.0.2 → 4.0.2, rust:ammonia >= 4.1.0, < 4.1.3 → 4.1.3
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The annotation-xml tag has slightly different behavior than the other "integration point" tags in MathML and SVG, but ammonia didn't handle it, so it didn't correctly strip the namespace-incompatible tags. This vulnerability only has an effect when the math and annotation-xml tags are both enabled, but the encoding attribute is disabled, because it relies on the following seque…