Security mailing lists by PureSourceCode

CVE-2021-38193

MEDIUM 6.1CVSS 3.1

Cross-site Scripting in ammonia

An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870.

Published
8 Aug 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-5325-xw5m-phm3RUSTSEC-2021-0074
Sources
NVDJSONOSV GHSA-5325-xw5m-phm3JSONOSV RUSTSEC-2021-0074JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ammonia_project ammonia
cpe:2.3:a:ammonia_project:ammonia:*:*:*:*:*:rust:*:*
< 3.1.0 3.1.0
OSV crates.io ammonia >= 3.0.0, < 3.1.0 3.1.0
OSV crates.io ammonia < 2.1.3 2.1.3
OSV crates.io ammonia >= 0.0.0-0, < 2.1.3; >= 3.0.0, < 3.1.0 2.1.3, 3.1.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Jul 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.