{"id":"CVE-2019-10905","published":"2019-04-06T19:59:55Z","modified":"2024-08-04T22:40:14Z","title":"Parsedown before 1.7.2, when safe mode is used and HTML markup is disabled, might allow attackers to execute arbitrary…","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01469,"percentile":0.74384,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/erusev/parsedown/issues/699","tags":["x_refsource_MISC"]},{"url":"https://github.com/erusev/parsedown/releases/tag/1.7.2","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":14.88}]},"affected":[{"ecosystem":"Packagist","package":"erusev/parsedown","vulnerableRanges":["<1.7.2"],"patched":["1.7.2"],"from":["GHSA-62m3-fc7f-jpp8"],"provenance":"source"}],"summary":{"text":"Parsedown, the PHP Markdown parser, before version 1.7.2 contains a flaw in its safe mode handling of code block infostrings. An attacker who can influence Markdown content rendered in safe mode with HTML markup disabled could potentially get arbitrary JavaScript executed, but only if a script already running on the affected page executes the contents of an element with a specific class, since spaces in infostrings allow the class name to be interpreted differently than intended.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:02Z"},"euvd":{"id":"EUVD-2022-1333","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-1000162","published":"2018-04-18","fixed":"1.7.0","kev":false,"link":{"from":"CVE-2018-1000162","to":"CVE-2019-10905","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:erusev/parsedown","fromFixed":"1.7.0","toFixed":"1.7.2","daysApart":353}]}},{"cve":"CVE-2019-10905","published":"2019-04-06","fixed":"1.7.2","kev":false}],"package":"Packagist:erusev/parsedown"}}