{"id":"GHSA-62m3-fc7f-jpp8","aliases":["CVE-2019-10905"],"title":"Parsedown Class-Name Injection","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"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.","severity":"high","score":8.1,"published":"2022-03-26T00:09:58.000Z","modified":"2024-02-16T08:03:16.897Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"erusev/parsedown","sources":[{"name":"OSV · GHSA-62m3-fc7f-jpp8","url":"https://osv.dev/vulnerability/GHSA-62m3-fc7f-jpp8"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"1.7.2"}],"type":"ECOSYSTEM"}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.2.0","0.2.1","0.3.0","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.5.0","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","1.0.0","1.0.0-rc.1","1.0.0-rc.2","1.0.0-rc.3","1.0.0-rc.4","1.0.0-rc.5","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.2.0","1.3.0","1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.7.0","1.7.1"],"fixed":["1.7.2"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2019-10905","https://github.com/erusev/parsedown/issues/699","https://github.com/FriendsOfPHP/security-advisories/blob/master/erusev/parsedown/CVE-2019-10905.yaml","https://github.com/erusev/parsedown","https://github.com/erusev/parsedown/releases/tag/1.7.2"],"sources":[{"name":"OSV","id":"GHSA-62m3-fc7f-jpp8","modified":"2024-02-16T08:03:16.897238Z","url":"https://osv.dev/vulnerability/GHSA-62m3-fc7f-jpp8"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T09:20:32.087Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}