{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-38186","id":"CVE-2021-38186","title":"Cross-site Scripting in comrak","description":"An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.","descriptionLong":"An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.","published":"2021-08-08T05:10:53.000Z","updated":"2026-10-24T10:31:00.261358228Z","reserved":"2021-08-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"comrak","purl":"pkg:cargo/comrak","ranges":["<0.10.1",">=0.0.0-0 <0.10.1"],"fixed":["0.10.1"],"advisory":"GHSA-6wj2-g87r-pm62"}],"cwes":["CWE-79"],"aliases":["GHSA-6wj2-g87r-pm62","RUSTSEC-2021-0063"],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0063.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/comrak/RUSTSEC-2021-0063.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38186","tags":["advisory"]},{"url":"https://github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5","tags":["web"]},{"url":"https://github.com/kivikakk/comrak","tags":["package"]},{"url":"https://github.com/kivikakk/comrak/compare/0.10.0...0.10.1","tags":["web"]},{"url":"https://github.com/kivikakk/comrak/releases/tag/0.10.1","tags":["web"]},{"url":"https://crates.io/crates/comrak","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00741,"epssPercentile":0.55435,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-38186","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38186","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-38186","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6wj2-g87r-pm62","ok":true,"note":"GHSA-6wj2-g87r-pm62"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38186","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}