Case-Sensitive Protection Mechanism in comrak Crate Allows XSS via Data: and javascript: URIs

Case-Sensitive Protection Mechanism in comrak Crate Allows XSS via Data: and javascript: URIs

CVE-2021-27671 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

An issue was discovered in the comrak crate before 0.9.1 for Rust. 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.

Learn more about our Web Application Penetration Testing UK.