{"id":"CVE-2021-27671","published":"2021-02-25T00:33:48Z","modified":"2024-08-03T21:26:10Z","title":"An issue was discovered in the comrak crate before 0.9.1 for Rust","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in the comrak crate before 0.9.1 for Rust. XSS can occur because the protection mechanism for data: and javascript: URIs is case-sensitive, allowing (for example) Data: to be used in an attack.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00695,"percentile":0.53882,"provenance":"source"},"cwes":[],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0026.html","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":10.78}]},"affected":[{"ecosystem":"crates.io","package":"comrak","vulnerableRanges":["<0.9.1",">=0.0.0-0, <0.9.1"],"patched":["0.9.1"],"from":["GHSA-xmr7-v725-2jjr","RUSTSEC-2021-0026"],"provenance":"source"}],"summary":{"text":"The flaw lies in the comrak crate (a Rust Markdown parser) in versions before 0.9.1, where the filter blocking dangerous data: and javascript: URIs is case-sensitive. An attacker can use mixed-case schemes such as \"Data:\" to bypass the protection and inject cross-site scripting into rendered output; the conditions required beyond supplying crafted Markdown input are not specified in the available information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:30Z"},"euvd":{"id":"EUVD-2021-1936","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kivikakk-comrak-cve-2021-27671","children":[{"from":"CVE-2021-27671","to":"CVE-2023-28626","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/lexer.pest","src/tests.rs"],"commits":["https://github.com/kivikakk/comrak/commit/b3efbb6e427bcd33bb14db45753ad4fd98e0f5bf","https://github.com/kivikakk/comrak/commit/ce795b7f471b01589f842dc09af38b025701178d"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.37,"basis":"same package + description similarity"}]}]}}