Security mailing lists by PureSourceCode

CVE-2021-38186

MEDIUM 6.1CVSS 3.1

Cross-site Scripting in comrak

An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.

Published
8 Aug 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-6wj2-g87r-pm62RUSTSEC-2021-0063
Sources
NVDJSONOSV GHSA-6wj2-g87r-pm62JSONOSV RUSTSEC-2021-0063JSON

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 comrak_project comrak
cpe:2.3:a:comrak_project:comrak:*:*:*:*:*:rust:*:*
< 0.10.1 0.10.1
OSV crates.io comrak < 0.10.1 0.10.1
OSV crates.io comrak >= 0.0.0-0, < 0.10.1 0.10.1

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 4 May 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.