Comrak · Comrak · CVE-2021-38186
Name of the Vulnerable Software and Affected Versions:
comrak versions prior to 0.10.1
Description:
An issue in the comrak crate for Rust mishandles & characters, leading to XSS via &# HTML entities. This occurs because ampersands were not being correctly escaped in link targets, making it possible to fashion unsafe URLs using schemes like `data:` or `javascript:` by entering them as HTML entities.
Recommendations:
For versions prior to 0.10.1, update to version 0.10.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of link targets with HTML entities to minimize the risk of exploitation.