Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-10905
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:45 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-10905
Complete source record
{
"id": "bb3efbf944db6c4a4306f644aa3f7ac7592fae03de1bd9df5c7f78a9a1a8cd12",
"url": "https://osv.dev/vulnerability/CVE-2019-10905",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-10905",
"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.",
"evidence": "osv:CVE-2019-10905",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-10905",
"aliases": [
"CVE-2019-10905",
"GHSA-62m3-fc7f-jpp8"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/erusev/parsedown",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "d60bcdc46978357759ecb13cb4b078da783f8faf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:parsedown:parsedown:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.7.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "d60bcdc46978357759ecb13cb4b078da783f8faf"
}
],
"source": "REFERENCES_TAG",
"original_tag": "1.7.2"
}
]
}
}
],
"versions": [
"1.7.1",
"1.7.0",
"1.6.4",
"1.6.3",
"1.6.2",
"1.6.1",
"1.6.0",
"1.5.4",
"1.5.3",
"1.5.2",
"1.5.1",
"1.5.0",
"1.4.5",
"1.4.4",
"1.4.3",
"1.4.2",
"1.4.1",
"1.4.0",
"1.3.0",
"1.2.0",
"1.1.4",
"1.1.3",
"1.1.2",
"1.1.1",
"1.1.0",
"1.0.1",
"1.0.0",
"1.0.0-rc.5",
"1.0.0-rc.4",
"1.0.0-rc.3",
"1.0.0-rc.2",
"1.0.0-rc.1",
"0.9.4",
"0.9.3",
"0.9.2",
"0.9.1",
"0.9.0",
"0.8.3",
"0.8.2",
"0.8.1",
"0.8.0",
"0.7.7",
"0.7.6",
"0.7.5",
"0.7.4",
"0.7.3",
"0.7.2",
"0.7.1",
"0.7.0",
"0.6.0",
"0.5.0",
"0.4.8",
"0.4.7",
"0.4.6",
"0.4.5",
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.4.0",
"0.3.0",
"0.2.1",
"0.2.0",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-10905.json"
}
}
],
"modified": "2026-10-20T10:51:36.106717883Z",
"provider": "osv",
"references": [
"https://github.com/erusev/parsedown/releases/tag/1.7.2",
"https://github.com/erusev/parsedown/issues/699"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-10905",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 382626,
"published_at": "2019-04-06T20:29:00.447+00:00"
}