Medium
Security advisory
An issue was discovered in Special:MediaSearch in the MediaSearch extension in MediaWiki through 1.36.2. The suggestion text (a parameter to mediasearch-did-you-mean) was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the intitle: search operator within the query.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-42043
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:33 UTC · Revision 1
Source evidence
An issue was discovered in Special:MediaSearch in the MediaSearch extension in MediaWiki through 1.36.2. The suggestion text (a parameter to mediasearch-did-you-mean) was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the intitle: search operator within the query.
osv:CVE-2021-42043
Complete source record
{
"id": "12207572daab00253cf538161a9801a0bc2f3112b1c4ce5edcab9c90c95573f3",
"url": "https://osv.dev/vulnerability/CVE-2021-42043",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-42043",
"summary": "An issue was discovered in Special:MediaSearch in the MediaSearch extension in MediaWiki through 1.36.2. The suggestion text (a parameter to mediasearch-did-you-mean) was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the intitle: search operator within the query.",
"evidence": "osv:CVE-2021-42043",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-42043",
"aliases": [
"BIT-mediawiki-2021-42043",
"CVE-2021-42043"
],
"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": "f65f9d6971578b301ef9fc915a729e6a13266a5e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mediawiki:mediawiki:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.36.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.36.2",
"1.36.1",
"1.36.0",
"1.36.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-42043.json"
}
}
],
"modified": "2026-10-24T10:30:41.133898381Z",
"provider": "osv",
"references": [
"https://gerrit.wikimedia.org/r/q/If64eb5842237c92290d07ebc3fe14710d9de3fc2",
"https://phabricator.wikimedia.org/T291600"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-42043",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 435081,
"published_at": "2021-10-06T21:15:07.337+00:00"
}