{"id":"GHSA-xmr7-v725-2jjr","summary":"Cross site scripting in comrak","details":"An issue was discovered in the comrak crate before 0.9.1 for Rust. Cross site scripting (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.","aliases":["CVE-2021-27671","RUSTSEC-2021-0026"],"modified":"2023-11-01T04:54:55.724990Z","published":"2021-08-25T20:52:12Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-08-19T17:34:25Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27671"},{"type":"WEB","url":"https://github.com/kivikakk/comrak/commit/b3efbb6e427bcd33bb14db45753ad4fd98e0f5bf"},{"type":"PACKAGE","url":"https://github.com/kivikakk/comrak"},{"type":"WEB","url":"https://github.com/kivikakk/comrak/releases/tag/0.9.1"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0026.html"}],"affected":[{"package":{"name":"comrak","ecosystem":"crates.io","purl":"pkg:cargo/comrak"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-xmr7-v725-2jjr/GHSA-xmr7-v725-2jjr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}