Skip to content
Heist/ feed
MediumFix available

XSS in ammonia via SVG `animate` and `set` animation tags

Type: advisorySource: OSV1 source record

The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it. ```xml Click set ``` Ammonia did not apply attribute filters based on `attributeName`, so the contents of the `to`, `from`, and `values` tags were not sanitized as URLs. Applications that do not explicitly allow either of these tags should not be affected, since neither are allowed by default. --- **Discovered by:** [Younghun Ko (@koyokr)](https://github.com/koyokr)

Announced Group revision 1
Original source ↗

RUSTSEC-2026-0213

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:RUSTSEC-2026-0213

ammonia

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
3.3.3

Source reference: /affected/0/ranges

4.0.3

Source reference: /affected/0/ranges

4.1.4

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0.0.0-0"
          },
          {
            "fixed": "3.3.3"
          },
          {
            "introduced": "4.0.0"
          },
          {
            "fixed": "4.0.3"
          },
          {
            "introduced": "4.1.0"
          },
          {
            "fixed": "4.1.4"
          }
        ]
      }
    ],
    "package": {
      "name": "ammonia",
      "purl": "pkg:cargo/ammonia",
      "ecosystem": "crates.io"
    },
    "database_specific": {
      "cvss": null,
      "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0213.json",
      "categories": [
        "format-injection"
      ],
      "informational": null
    },
    "ecosystem_specific": {
      "affects": {
        "os": [],
        "arch": [],
        "functions": []
      },
      "affected_functions": null
    }
  }
]
Related CVEs
CVE-2026-102342

Source reference: /aliases

Publisher severity

No explicit severity was provided.

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

Event
#37054 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement