Files
advisory-db/packages/comrak.json
T
2025-10-27 16:49:06 +00:00

143 lines
4.0 KiB
JSON

[
{
"id": "RUSTSEC-2021-0063",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-05-04T12:00:00Z",
"aliases": [
"CVE-2021-38186",
"GHSA-6wj2-g87r-pm62"
],
"related": [],
"summary": "XSS in `comrak`",
"details": "[comrak](https://github.com/kivikakk/comrak) operates by default in a \"safe\"\nmode of operation where unsafe content, such as arbitrary raw HTML or URLs with\nnon-standard schemes, are not permitted in the output. This is per the\nreference GFM implementation, [cmark-gfm](https://github.com/github/cmark).\n\nAmpersands were not being correctly escaped in link targets, making it possible\nto fashion unsafe URLs using schemes like `data:` or `javascript:` by entering\nthem as HTML entities, e.g. `&#x64&#x61&#x74&#x61&#x3a`. The intended\nbehaviour, demonstrated upstream, is that these should be escaped and therefore\nharmless, but this behaviour was broken in comrak.",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "comrak",
"purl": "pkg:cargo/comrak"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [
"format-injection"
],
"cvss": null,
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.10.1"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/comrak"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0063.html"
},
{
"type": "WEB",
"url": "https://github.com/kivikakk/comrak/releases/tag/0.10.1"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2021-0026",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-02-21T12:00:00Z",
"aliases": [
"CVE-2021-27671",
"GHSA-xmr7-v725-2jjr"
],
"related": [],
"summary": "XSS in `comrak`",
"details": "The [comrak](https://github.com/kivikakk/comrak) we were matching unsafe URL prefixes, such as `data:` or `javascript:` , in a case-sensitive manner. This meant prefixes like `Data:` were untouched.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "comrak",
"purl": "pkg:cargo/comrak"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [
"format-injection"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.9.1"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/comrak"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0026.html"
},
{
"type": "WEB",
"url": "https://github.com/kivikakk/comrak/releases/tag/0.9.1"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]