Medium
Security advisory
An issue was discovered in CentralAuth in MediaWiki through 1.36.2. The rightsnone MediaWiki message was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the setchange log.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-42041
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:29 UTC · Revision 1
Source evidence
An issue was discovered in CentralAuth in MediaWiki through 1.36.2. The rightsnone MediaWiki message was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the setchange log.
osv:CVE-2021-42041
Complete source record
{
"id": "c4e6676a34c4e8e24793e6580d921634b0058ba89a54bdfd6b1c06c9527fd685",
"url": "https://osv.dev/vulnerability/CVE-2021-42041",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-42041",
"summary": "An issue was discovered in CentralAuth in MediaWiki through 1.36.2. The rightsnone MediaWiki message was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the setchange log.",
"evidence": "osv:CVE-2021-42041",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-42041",
"aliases": [
"BIT-mediawiki-2021-42041",
"CVE-2021-42041"
],
"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-42041.json"
}
}
],
"modified": "2026-10-24T10:30:54.121093464Z",
"provider": "osv",
"references": [
"https://gerrit.wikimedia.org/r/q/I7aeaa6e4de5ccaa5eeb6bf4fb00c96b01d5fea35",
"https://phabricator.wikimedia.org/T291696"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-42041",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 438080,
"published_at": "2021-10-06T21:15:07.26+00:00"
}