Medium
Security advisory
Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-16876
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:44 UTC · Revision 1
Source evidence
Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument.
osv:CVE-2017-16876
Complete source record
{
"id": "1a3edad756e399458de3d1ab10b295e0f88aca6572f92cf61c0eb0362d719a4d",
"url": "https://osv.dev/vulnerability/CVE-2017-16876",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-16876",
"summary": "Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the \"key\" argument.",
"evidence": "osv:CVE-2017-16876",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2017-16876",
"aliases": [
"CVE-2017-16876",
"GHSA-98gj-wwxm-cj3h",
"PYSEC-2017-18"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/lepture/mistune",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "cef69acaa506567595e95ab6ecea25a806de622e"
},
{
"fixed": "5f06d724bc05580e7f203db2d4a4905fc1127f98"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.8.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "5f06d724bc05580e7f203db2d4a4905fc1127f98"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.8",
"v0.7.4",
"v0.7.3",
"v0.7.2",
"v0.7.1",
"v0.7",
"v0.6",
"v0.5.1",
"v0.5",
"v0.4.1",
"v0.4",
"v0.3.1",
"v0.3.0",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-16876.json"
}
}
],
"modified": "2026-10-20T10:47:47.973154969Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/",
"https://github.com/lepture/mistune/blob/master/CHANGES.rst",
"https://bugzilla.redhat.com/show_bug.cgi?id=1524596",
"https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "26"
},
{
"last_affected": "26"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-16876",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379729,
"published_at": "2017-12-29T15:29:00.61+00:00"
}