PT-2018-4711 · Marked · Marked
Matt-
+1
·
Published
2018-05-31
·
Updated
2019-10-09
·
CVE-2016-10531
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
marked versions 0.3.5 and earlier
Description
The issue arises from the way marked parses input, specifically HTML entities, allowing for the bypass of content injection protection when
sanitize: true is configured. This enables the injection of a javascript: URL. The flaw occurs because &#xNNanything; gets parsed, leaving behind any remaining characters, such as anything;. This can lead to cross-site scripting vulnerabilities in link components. For instance, a link URI like javascript֍ocument;alert(1) can render a valid link that executes alert(1) when clicked.Recommendations
Update to version 0.3.6 or later.
As a temporary workaround, consider disabling the
sanitize: true configuration until a patch is available.
Restrict access to link components to minimize the risk of exploitation.
Avoid using HTML entities in link URIs until the issue is resolved.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Marked