{"id":"RUSTSEC-2021-0026","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.","aliases":["CVE-2021-27671","GHSA-xmr7-v725-2jjr"],"modified":"2023-11-08T04:05:25.341735Z","published":"2021-02-21T12:00:00Z","database_specific":{"license":"CC0-1.0"},"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"}],"affected":[{"package":{"name":"comrak","ecosystem":"crates.io","purl":"pkg:cargo/comrak"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.1"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"os":[],"arch":[],"functions":[]}},"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,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0026.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}