{"id":"CVE-2019-10905","aliases":["CVE-2019-10905","GHSA-62m3-fc7f-jpp8"],"related":[],"kind":"vulnerability","state":"published","title":"Parsedown Class-Name Injection","summary":"Parsedown before 1.7.2, when safe mode is used and HTML markup is disabled, might allow attackers to execute arbitrary JavaScript code if a script (already running on the affected page) executes the contents of any element with a specific class. This occurs because spaces are permitted in code block infostrings, which interferes with the intended behavior of a single class name beginning with the language- substring.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Parsedown before 1.7.2, when safe mode is used and HTML markup is disabled, might allow attackers to execute arbitrary JavaScript code if a script (already running on the affected page) executes the contents of any element with a specific class. This occurs because spaces are permitted in code block infostrings, which interferes with the intended behavior of a single class name beginning with the language- substring.","source":"cvelist"},{"lang":"es","text":"Parsedown, en versiones anteriores a la 1.7.2, cuando se utiliza en modo seguro y está deshabilitado el marcado HTML, podría permitir que los atacantes ejecuten código arbitrario JavaScript si un script (que ya se está ejecutando en la página afectada) ejecuta el contenido de cualquier elemento con una clase específica. Esto ocurre debido a que se permiten espacios en cadenas de información de bloqueo de código, que interfieren con el comportamiento previsto del nombre de una clase individual con la subcadena language-.","source":"nvd"}],"published":"2019-04-06T19:59:55.000Z","modified":"2026-06-17T02:11:52.123Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.2"}],"ecosystem":"Packagist","package":"erusev/parsedown","purl":"pkg:composer/erusev/parsedown","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.7.2"}],"vendor":"parsedown","product":"parsedown","cpe":"cpe:2.3:a:parsedown:parsedown:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/erusev/parsedown/issues/699","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erusev/parsedown/releases/tag/1.7.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10905","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/erusev/parsedown/CVE-2019-10905.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-2019-10905","url":"https://www.cve.org/CVERecord?id=CVE-2019-10905","licence":"CVE Terms of Use","modified":"2024-08-04T22:40:14.992Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-62m3-fc7f-jpp8","url":"https://github.com/advisories/GHSA-62m3-fc7f-jpp8","licence":"CC-BY-4.0","modified":"2024-02-16T08:03:16.897Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-10905","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10905","licence":"Public domain","modified":"2026-06-17T02:11:52.123Z"}],"updatedAt":"2026-11-25T22:57:44.289Z","epss":{"score":0.01469,"percentile":0.74501,"date":"2026-12-01T12:00:22.000Z"}}