CVE catalog

CVE-2026-102342

rust-ammonia: CVE-2026-102342

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.27% · Oct 25, 2026

ammonia is a Rust library for repairing and securing untrusted HTML. Prior to 3.3.3, 4.0.3, and 4.1.4, applications that allow the SVG animate or set elements can retain an animation whose attributeName targets href and whose value uses the javascript scheme. The sanitized SVG can therefore create a script-bearing link, and a user who clicks the link can execute attacker-controlled script in the application's origin, enabling stored cross-site scripting. This issue is fixed in versions 3.3.3, 4.0.3, and 4.1.4.

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
RustammoniaNot reported4.1.4fixed
RustammoniaNot reported4.0.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrust-ammoniasourcesid4.1.4-1not yet assignedNot reportedNot reported
Debianrust-ammoniasourceforky4.1.4-1not yet assignedNot reportedNot reported
Debianrust-ammoniasourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianrust-ammoniasourcebookworm(unfixed)not yet assignedNot reportedNot reported
RustammoniarustNot reported4.1.4Not reportedGHSA-M6MH-2HW2-555XNot reported
RustammoniarustNot reported4.0.3Not reportedGHSA-M6MH-2HW2-555XNot reported

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