{"id":"CVE-2018-1000162","aliases":["CVE-2018-1000162","GHSA-qgpv-86r3-87fh"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in Parsedown","summary":"Parsedown version prior to 1.7.0 contains a Cross Site Scripting (XSS) vulnerability in `setMarkupEscaped` for escaping HTML that can result in JavaScript code execution. This attack appears to be exploitable via specially crafted markdown that allows it to side step HTML escaping by breaking AST boundaries. This vulnerability appears to have been fixed in 1.7.0 and later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Parsedown version prior to 1.7.0 contains a Cross Site Scripting (XSS) vulnerability in `setMarkupEscaped` for escaping HTML that can result in JavaScript code execution. This attack appears to be exploitable via specially crafted markdown that allows it to side step HTML escaping by breaking AST boundaries. This vulnerability appears to have been fixed in 1.7.0 and later.","source":"cvelist"},{"lang":"es","text":"Parsedown, en versiones anteriores a la 1.7.0, contiene una vulnerabilidad de Cross-Site Scripting (XSS) en `setMarkupEscaped` para escapar HTML que puede resultar en la ejecución de código JavaScript. Este ataque parece ser explotable mediante un marcado especialmente manipulado que permite el escapado HTML lateral rompiendo los límites de AST. La vulnerabilidad parece haber sido solucionada en las versiones 1.7.0 y siguientes.","source":"nvd"}],"published":"2018-04-18T19:00:00.000Z","modified":"2026-06-17T01:32:33.907Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.0"}],"ecosystem":"Packagist","package":"erusev/parsedown","purl":"pkg:composer/erusev/parsedown","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.7.0"}],"vendor":"parsedown","product":"parsedown","cpe":"cpe:2.3:a:parsedown:parsedown:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Roave/SecurityAdvisories/issues/44#issuecomment-368594409","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erusev/parsedown/pull/495","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000162","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/erusev/parsedown/CVE-2018-1000162.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/erusev/parsedown","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1000162","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000162","licence":"CVE Terms of Use","modified":"2024-08-05T12:33:49.313Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qgpv-86r3-87fh","url":"https://github.com/advisories/GHSA-qgpv-86r3-87fh","licence":"CC-BY-4.0","modified":"2024-02-16T08:21:45.277Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1000162","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000162","licence":"Public domain","modified":"2026-06-17T01:32:33.907Z"}],"updatedAt":"2026-11-25T22:57:37.282Z","epss":{"score":0.01159,"percentile":0.68007,"date":"2026-12-01T12:00:22.000Z"}}