Medium
Security advisory
An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-38186
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:54 UTC · Revision 1
Source evidence
An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.
osv:CVE-2021-38186
Complete source record
{
"id": "62fd4a3b65957671bccf6c6cee6f26e40a46823f6b536dc702b1e0047756a433",
"url": "https://osv.dev/vulnerability/CVE-2021-38186",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-38186",
"summary": "An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.",
"evidence": "osv:CVE-2021-38186",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-38186",
"aliases": [
"CVE-2021-38186",
"GHSA-6wj2-g87r-pm62",
"RUSTSEC-2021-0063"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/kivikakk/comrak",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "154479561c919e966ec24c0956e049fe5de68378"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:comrak_project:comrak:*:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.10.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"0.10.1-rc.1",
"0.10.0",
"0.9.1",
"0.9.0",
"0.8.2",
"0.8.1",
"0.8.0",
"0.7.1",
"0.7.0",
"0.6.2",
"0.6.1",
"0.6.0",
"0.5.1",
"0.5.0",
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.4.0",
"0.3.1",
"0.3.0",
"0.2.14",
"0.2.13",
"0.2.12",
"0.2.11",
"0.2.10",
"0.2.9",
"0.2.8",
"0.2.7",
"0.2.6",
"0.2.5",
"0.2.4",
"0.2.3",
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.9",
"0.1.8",
"0.1.7",
"0.1.6",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38186.json"
}
}
],
"modified": "2026-10-24T10:31:00.261358228Z",
"provider": "osv",
"references": [
"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/comrak/RUSTSEC-2021-0063.md",
"https://rustsec.org/advisories/RUSTSEC-2021-0063.html"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-38186",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 439501,
"published_at": "2021-08-08T06:15:08.78+00:00"
}