GHSA-vfvf-mqq8-rwqc
Dashboard / Vulnerabilities / GHSA-vfvf-mqq8-rwqc
Summary: Sanitization bypass using HTML Entities in marked
Details: Affected versions of `marked` are susceptible to a cross-site scripting vulnerability in link components when `sanitize:true` is configured. ## Proof of Concept This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted. For example: A link URI such as ``` javascript֍ocument;alert(1) ``` Renders a valid link that when clicked will execute `alert(1)`. ## Recommendation Update to version 0.3.6 or later.
References: https://nvd.nist.gov/vuln/detail/CVE-2016-10531, https://github.com/chjj/marked/pull/592, https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523, https://github.com/advisories/GHSA-vfvf-mqq8-rwqc, https://www.npmjs.com/advisories/101
Affected packages
Package
Name: marked
Purl: pkg:npm/marked
Affected ranges
Type: SEMVER
Events:
