CVE catalog

CVE-2026-63430

rust-ammonia: CVE-2026-63430

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS: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
Published
Source
[NVD] · [CVE record]
EPSS
0.56% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianrust-ammoniasid4.2.3-1fixed
Debianrust-ammoniaforky4.1.4-1fixed
Debianrust-ammoniatrixie4.0.0-3vulnerable
Debianrust-ammoniabookworm3.2.1-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrust-ammoniasourcesid4.1.3-1not yet assignedNot reported[1141594]
Debianrust-ammoniasourceforky4.1.3-1not yet assignedNot reported[1141594]
Debianrust-ammoniasourcetrixie(unfixed)not yet assignedNot reported[1141594]
Debianrust-ammoniasourcebookworm(unfixed)not yet assignedNot reported[1141594]

[Debian bug #1141594]

Notes

[trixie] rust-ammonia: Minor issue [bookworm] rust-ammonia: Limited support, minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [rust-ammonia]

    Details (2)
    • 3.2.1-1 · amd64 · bookworm

      Affected

      dsa · rust-ammonia · debian · bookworm; dsa · rust-ammonia · debian · 12

    • 3.2.1-1 · arm64 · bookworm

      Affected

      dsa · rust-ammonia · debian · bookworm; dsa · rust-ammonia · debian · 12

[Debian 13 (Trixie)]

  • Source package: [rust-ammonia]

    Details (2)
    • 4.0.0-3 · amd64 · trixie

      Affected

      dsa · rust-ammonia · debian · 13

    • 4.0.0-3 · arm64 · trixie

      Affected

      dsa · rust-ammonia · debian · 13

Observed:

References