Medium
Security advisory
python-markdown2 through 2.3.8 allows XSS because element names are mishandled unless a \w+ match succeeds. For example, an attack might use elementname@ or elementname- with an onclick attribute.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-11888
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:41 UTC · Revision 1
Source evidence
python-markdown2 through 2.3.8 allows XSS because element names are mishandled unless a \w+ match succeeds. For example, an attack might use elementname@ or elementname- with an onclick attribute.
osv:CVE-2020-11888
Complete source record
{
"id": "70663e47a3bbf429b64fbf49431ab94f403e335bcf8c412baf596c3cea3278a3",
"url": "https://osv.dev/vulnerability/CVE-2020-11888",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-11888",
"summary": "python-markdown2 through 2.3.8 allows XSS because element names are mishandled unless a \\w+ match succeeds. For example, an attack might use elementname@ or elementname- with an onclick attribute.",
"evidence": "osv:CVE-2020-11888",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-11888",
"aliases": [
"CVE-2020-11888",
"GHSA-fv3h-8x5j-pvgq",
"PYSEC-2020-65"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/trentm/python-markdown2",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "44dde555d9cecbcfa16a3d07f17415719777e5c9"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python-markdown2_project:python-markdown2:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.3.8"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.3.8",
"2.3.7",
"2.3.6",
"2.3.5",
"2.3.4",
"2.3.3",
"2.3.2",
"2.3.1",
"2.3.0",
"2.2.3",
"2.2.2",
"2.2.1",
"2.2.0",
"2.1.0",
"2.0.1",
"2.0.0",
"1.4.2",
"1.4.1",
"1.4.0",
"1.3.1",
"1.3.0",
"1.2.0",
"1.1.1",
"1.1.0",
"1.0.1.19",
"1.0.1.18"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-11888.json"
}
}
],
"modified": "2026-10-20T10:51:04.398150936Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6XOAIRJJCZNJUALXDHSIGH5PS2H63A3J/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AQLRBGRVRRZK7P5SFL2MNGXFX37YHJAV/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN6QSHRFZXRQAYZJQ4MOW5MKIXBYOMED/",
"https://github.com/trentm/python-markdown2/issues/348"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-11888",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 382462,
"published_at": "2020-04-20T16:15:14.43+00:00"
}