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.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:parsedown:parsedown:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.7.2"
}
],
"source": "CPE_RANGE"
},
{
"original_tag": "1.7.2",
"range": [
{
"fixed": "d60bcdc46978357759ecb13cb4b078da783f8faf"
}
],
"source": "REFERENCES_TAG"
}
]
}