Skip to main content
VulnerabilityPublished

CVE-2026-102342: ammonia · Cross-site Scripting

Affects ammoniaSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.4 Medium · fixed in 4.1.4 : update ammonia when convenient.

Data as of 27 Nov 2026, 22:51 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.1.4, 4.0.3, 3.3.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
rust-ammoniaammoniaAffected
  • >=4.1.2 <4.1.4
Fixed in
  • 4.1.4
rust-ammoniaammoniaAffected
  • >=4.0.0 <4.0.3
Fixed in
  • 4.0.3
rust-ammoniaammoniaAffected
  • <3.3.3
Fixed in
  • 3.3.3
crates.ioammoniapkg:cargo/ammoniaOther threatsAffected
  • <3.3.3
Fixed in
  • 3.3.3
crates.ioammoniapkg:cargo/ammoniaOther threatsAffected
  • >=4.0.0 <4.0.3
Fixed in
  • 4.0.3
crates.ioammoniapkg:cargo/ammoniaOther threatsAffected
  • >=4.1.2 <4.1.4
Fixed in
  • 4.1.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade rust-ammonia to version 3.3.3, 4.0.3, or 4.1.4 or later, where this vulnerability is fixed. No other mitigation is required as the issue is resolved in these official releases.

Description

CVE-2026-102342 is a stored cross-site scripting (XSS) vulnerability in the rust-ammonia library, which is used to sanitize untrusted HTML. Versions prior to 3.3.3, 4.0.3, and 4.1.4 allow SVG animate or set elements with an attributeName targeting href and a javascript scheme value to persist. This enables attackers to embed script-bearing links that execute attacker-controlled scripts in the application's origin when clicked. The issue is fixed in versions 3.3.3, 4.0.3, and 4.1.4.

References

Community reviews

Loading reviews…