CVE-2026-63430 (GCVE-0-2026-63430)
Vulnerability from cvelistv5
Published
2026-10-15 18:10
Modified
2026-10-15 20:25
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
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.
Impacted products
Vendor Product Version
rust-ammonia ammonia Version: < 3.3.2
Version: >= 4.0.0, < 4.0.2
Version: >= 4.1.0, < 4.1.3
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-63430",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "yes"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-15T20:24:18.831464Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T20:25:49.464Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "references": [
          {
            "tags": [
              "exploit"
            ],
            "url": "https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr"
          }
        ],
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "ammonia",
          "vendor": "rust-ammonia",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 3.3.2"
            },
            {
              "status": "affected",
              "version": "\u003e= 4.0.0, \u003c 4.0.2"
            },
            {
              "status": "affected",
              "version": "\u003e= 4.1.0, \u003c 4.1.3"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s 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."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "privilegesRequired": "NONE",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "LOW",
            "subIntegrityImpact": "LOW",
            "userInteraction": "NONE",
            "vectorString": "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",
            "version": "4.0",
            "vulnAvailabilityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "NONE"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-79",
              "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-15T18:10:35.869Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/pull/243",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/pull/243"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/pull/244",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/pull/244"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/pull/245",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/pull/245"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.2",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.2"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.2",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.2"
        },
        {
          "name": "https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.3",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.3"
        },
        {
          "name": "https://ivan09999.github.io/ammonia-mxss",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://ivan09999.github.io/ammonia-mxss"
        },
        {
          "name": "https://rustsec.org/advisories/RUSTSEC-2026-0193.html",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://rustsec.org/advisories/RUSTSEC-2026-0193.html"
        }
      ],
      "source": {
        "advisory": "GHSA-9jh8-v38h-cvhr",
        "discovery": "UNKNOWN"
      },
      "title": "ammonia: mXSS in ammonia via MathML `annotation-xml` encoding strip"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2026-63430",
    "datePublished": "2026-10-15T18:10:35.869Z",
    "dateReserved": "2026-07-16T19:35:57.766Z",
    "dateUpdated": "2026-10-15T20:25:49.464Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-63430\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"yes\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-15T20:24:18.831464Z\"}}}], \"references\": [{\"url\": \"https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr\", \"tags\": [\"exploit\"]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-15T20:24:30.314Z\"}}], \"cna\": {\"title\": \"ammonia: mXSS in ammonia via MathML `annotation-xml` encoding strip\", \"source\": {\"advisory\": \"GHSA-9jh8-v38h-cvhr\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV4_0\": {\"version\": \"4.0\", \"baseScore\": 6.3, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"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\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"attackRequirements\": \"PRESENT\", \"privilegesRequired\": \"NONE\", \"subIntegrityImpact\": \"LOW\", \"vulnIntegrityImpact\": \"NONE\", \"subAvailabilityImpact\": \"NONE\", \"vulnAvailabilityImpact\": \"NONE\", \"subConfidentialityImpact\": \"LOW\", \"vulnConfidentialityImpact\": \"NONE\"}}], \"affected\": [{\"vendor\": \"rust-ammonia\", \"product\": \"ammonia\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 3.3.2\"}, {\"status\": \"affected\", \"version\": \"\u003e= 4.0.0, \u003c 4.0.2\"}, {\"status\": \"affected\", \"version\": \"\u003e= 4.1.0, \u003c 4.1.3\"}]}], \"references\": [{\"url\": \"https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr\", \"name\": \"https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-9jh8-v38h-cvhr\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/pull/243\", \"name\": \"https://github.com/rust-ammonia/ammonia/pull/243\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/pull/244\", \"name\": \"https://github.com/rust-ammonia/ammonia/pull/244\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/pull/245\", \"name\": \"https://github.com/rust-ammonia/ammonia/pull/245\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca\", \"name\": \"https://github.com/rust-ammonia/ammonia/commit/004bf2cee4288f74a6ee619d589e3e90c24c09ca\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31\", \"name\": \"https://github.com/rust-ammonia/ammonia/commit/7ac3fd3145236f28857eeecbadb544c8659cba31\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274\", \"name\": \"https://github.com/rust-ammonia/ammonia/commit/b51bf4f9749ed3cd518330105f20a2c39c9ee274\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.2\", \"name\": \"https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.2\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.2\", \"name\": \"https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.2\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.3\", \"name\": \"https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.3\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://ivan09999.github.io/ammonia-mxss\", \"name\": \"https://ivan09999.github.io/ammonia-mxss\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://rustsec.org/advisories/RUSTSEC-2026-0193.html\", \"name\": \"https://rustsec.org/advisories/RUSTSEC-2026-0193.html\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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\u0027s 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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-79\", \"description\": \"CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2026-10-15T18:10:35.869Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-63430\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-15T20:25:49.464Z\", \"dateReserved\": \"2026-07-16T19:35:57.766Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2026-10-15T18:10:35.869Z\", \"assignerShortName\": \"GitHub_M\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…