Medium
Security advisory
In MediaWiki through 1.37, XSS can occur in Wikibase because an external identifier property can have a URL format that includes a $1 formatter substitution marker, and the javascript: URL scheme (among others) can be used.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-45472
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:55 UTC · Revision 1
Source evidence
In MediaWiki through 1.37, XSS can occur in Wikibase because an external identifier property can have a URL format that includes a $1 formatter substitution marker, and the javascript: URL scheme (among others) can be used.
osv:CVE-2021-45472
Complete source record
{
"id": "b55f587a44af96db0a7ef097b91732ad12d4f99d6b413ab56a7f93feecbbb3ab",
"url": "https://osv.dev/vulnerability/CVE-2021-45472",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-45472",
"summary": "In MediaWiki through 1.37, XSS can occur in Wikibase because an external identifier property can have a URL format that includes a $1 formatter substitution marker, and the javascript: URL scheme (among others) can be used.",
"evidence": "osv:CVE-2021-45472",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-45472",
"aliases": [
"BIT-mediawiki-2021-45472",
"CVE-2021-45472"
],
"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/wikimedia/mediawiki",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "4533777d189c3844688b9ce5604e0b70692935f4"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mediawiki:mediawiki:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.37"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"REL1_37",
"1.37.6",
"1.37.5",
"1.37.4",
"1.37.3",
"1.37.2",
"1.37.1",
"1.37.0",
"1.37.0-rc.2",
"1.37.0-rc.1",
"1.37.0-rc.0",
"test-hashar-for-ci",
"1.6.0",
"1.5.0beta4",
"1.5.0beta3",
"1.5.0beta2",
"1.5.0beta1",
"1.5.0alpha2",
"1.5.0alpha1",
"1.3.0beta1",
"1.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45472.json"
}
}
],
"modified": "2026-10-24T10:31:00.365597257Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z7JNQA53K675TQBBJPZRAG5ZT6XES3IS/",
"https://gerrit.wikimedia.org/r/q/I37ece1dfdc80d38055067c9c4fa73ba591acd8bd",
"https://phabricator.wikimedia.org/T297570"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "35"
},
{
"last_affected": "35"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-45472",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 439524,
"published_at": "2021-12-24T02:15:07.35+00:00"
}