Skip to content
Heist/ feed
Back to feed
MediumFix available

rust-ammonia — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-102342

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.

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.4-1
CVEs
CVE-2026-102342
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 02:04 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-102342

core-osv · Original source

Published 13 Oct 2026, 15:17 UTC

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.

osv:DEBIAN-CVE-2026-102342

rust-ammonia

Fixed versions: Not specified

rust-ammonia

Fixed versions: Not specified

rust-ammonia

Fixed versions: 4.1.4-1

Complete source record
{
  "id": "0394660c4c4300302b6a837932ab1400f2120f71e38c8223030cd971768c9170",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-102342",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-102342",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-102342",
    "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.4-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"
          },
          {
            "value": "4.1.3-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-102342",
      "aliases": [
        "DEBIAN-CVE-2026-102342"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "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-102342.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-102342.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.1.4-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",
            "4.1.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-102342.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:05:30.940957693Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-102342"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-102342"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-102342",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 424457,
  "published_at": "2026-10-13T15:17:30.177+00:00"
}