PT-2021-21993 · Comrak · Comrak
Kivikakk
·
Published
2021-05-04
·
Updated
2021-08-25
·
CVE-2021-38186
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
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.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Comrak