{"id":"CVE-2021-38186","published":"2021-08-08T05:10:53Z","modified":"2024-08-04T01:37:15Z","title":"An issue was discovered in the comrak crate before 0.10.1 for Rust","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00741,"percentile":0.50715,"provenance":"source"},"cwes":[],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0063.html","tags":["x_refsource_MISC"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/comrak/RUSTSEC-2021-0063.md","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":10.14}]},"affected":[{"ecosystem":"crates.io","package":"comrak","vulnerableRanges":["<0.10.1",">=0.0.0-0, <0.10.1"],"patched":["0.10.1"],"from":["GHSA-6wj2-g87r-pm62","RUSTSEC-2021-0063"],"provenance":"source"}],"summary":{"text":"The comrak crate for Rust, in versions before 0.10.1, mishandles ampersand characters so that HTML entities beginning with \"&#\" are not properly neutralised in its output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:47Z"},"euvd":{"id":"EUVD-2021-1606","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kivikakk-comrak-cve-2021-27671","children":[{"from":"CVE-2021-38186","to":"CVE-2023-28626","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/html.rs","src/tests.rs"],"commits":["https://github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5","https://github.com/kivikakk/comrak/commit/ce795b7f471b01589f842dc09af38b025701178d"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same package + description similarity"}]},{"from":"CVE-2021-38186","to":"CVE-2023-28631","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/html.rs","src/tests.rs"],"commits":["https://github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5","https://github.com/kivikakk/comrak/commit/9ff5f8df0ac951f5742d22a72c39b89a15f56639"],"basis":"rarely changed file"}]}]}}