GHSA-vfvf-mqq8-rwqc
Sanitization bypass using HTML Entities in marked
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2016-10531
- CVSS_V3
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| npm · marked | introduced 0, fixed 0.3.6 |
Références
- https://nvd.nist.gov/vuln/detail/CVE-2016-10531 ADVISORY
- https://github.com/chjj/marked/pull/592 WEB
- https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523 WEB
- https://github.com/advisories/GHSA-vfvf-mqq8-rwqc ADVISORY
- https://www.npmjs.com/advisories/101 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |