rust-ammonia — security advisory
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.
- Products
- rust-ammonia
- Affected versions
- 3.2.1-1, 3.3.0-1, 4.0.0-1, 4.0.0-2, 4.0.0-3, 4.1.1-1, 4.1.2-1, 4.1.2-2, 4.1.3-1, 4.1.4-1, 4.2.3-1
- Fixed versions
- 4.1.3-1
- CVEs
- CVE-2026-63430
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 02:14 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-63430
rust-ammonia
Fixed versions: Not specified
rust-ammonia
Fixed versions: Not specified
rust-ammonia
Fixed versions: 4.1.3-1
Complete source record
{
"id": "f833d683cf043d49e5c0e4d0ee9c38f41bc5d1a919f4ccf56506b3d35710131d",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-63430",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-63430",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-63430",
"products": [
{
"name": {
"value": "rust-ammonia",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.2.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.3.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.0.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.0.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "4.0.0-3",
"evidence": "/affected/0/versions"
},
{
"value": "4.1.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.1.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.1.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "4.1.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.1.4-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.2.3-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-ammonia",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.0.0-3",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.2-2",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.3-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.1.4-1",
"evidence": "/affected/1/versions"
},
{
"value": "4.2.3-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-ammonia",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.1.3-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "4.0.0-3",
"evidence": "/affected/2/versions"
},
{
"value": "4.1.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.1.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.1.2-2",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-63430",
"aliases": [
"DEBIAN-CVE-2026-63430"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-ammonia",
"purl": "pkg:deb/debian/rust-ammonia?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"3.2.1-1",
"3.3.0-1",
"4.0.0-1",
"4.0.0-2",
"4.0.0-3",
"4.1.1-1",
"4.1.2-1",
"4.1.2-2",
"4.1.3-1",
"4.1.4-1",
"4.2.3-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-63430.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-ammonia",
"purl": "pkg:deb/debian/rust-ammonia?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"4.0.0-3",
"4.1.1-1",
"4.1.2-1",
"4.1.2-2",
"4.1.3-1",
"4.1.4-1",
"4.2.3-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-63430.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.1.3-1"
}
]
}
],
"package": {
"name": "rust-ammonia",
"purl": "pkg:deb/debian/rust-ammonia?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"4.0.0-3",
"4.1.1-1",
"4.1.2-1",
"4.1.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-63430.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:05:39.733325409Z",
"provider": "osv",
"upstream": [
"CVE-2026-63430"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-63430"
]
},
"related_cves": [
{
"value": "CVE-2026-63430",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 424529,
"published_at": "2026-10-15T19:17:42.367+00:00"
}