Page MenuHomePhabricator

CVE-2026-34094: Customized help link for page protection indicator is relative to subpage name, because the link target is missing the "/wiki/" prefix
Closed, ResolvedPublicSecurity

Description

Steps to replicate the issue (include links if applicable):

What happens?:
BASEPAGENAME is added to the link.

image.png (800×2 px, 385 KB)

What should have happened instead?:
The link from https://ru.wikipedia.org/wiki/MediaWiki:Protection-editautoreviewprotected-helppage leads directly to the page.

Event Timeline

Iniquity renamed this task from The name of the main page on the subpage is inserted into the indicator link to BASEPAGENAME of the subpage is inserted into the 'indicator' link.Feb 1 2026, 1:32 PM

@matmarex hi! may you please look in it? :(

matmarex set Security to Software security bug.
matmarex added projects: Security, Security-Team.
matmarex changed the visibility from "Public (No Login Required)" to "Custom Policy".
matmarex changed the subtype of this task from "Bug Report" to "Security Issue".
matmarex added a project: Patch-For-Review.

Thanks for the bug report! In addition to the incorrect appearance, this is actually a low-severity security issue – the link doesn't work correctly because the link target is not validated, which would also allow an administrator to insert JavaScript into the page, which should be reserved for interface administrators only. Hence I turned this into a private bug report.

Patch:

I hope we'll be able to deploy it and then make it public soon.

For the record, the bug was introduced in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1033697, in MediaWiki 1.43. Only wikis using $wgEnableProtectionIndicators are affected (it used to be disabled by default, but is enabled since MediaWiki 1.45: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1192525).

Patches for release versions:



sbassett subscribed.

Patch:

I hope we'll be able to deploy it and then make it public soon.

CR+2, I think we can get this out during next Monday's security deployment window.

sbassett changed the task status from Open to In Progress.Feb 19 2026, 5:53 PM
sbassett triaged this task as Medium priority.
sbassett changed Author Affiliation from N/A to Wikimedia Communities.
sbassett changed Risk Rating from N/A to Medium.
matmarex renamed this task from BASEPAGENAME of the subpage is inserted into the 'indicator' link to Customized help link for page protection indicator is relative to subpage name, because the link target is missing the "/wiki/" prefix.Feb 20 2026, 6:20 PM
sbassett added a parent task: Restricted Task.Feb 23 2026, 11:13 PM
Reedy renamed this task from Customized help link for page protection indicator is relative to subpage name, because the link target is missing the "/wiki/" prefix to CVE-2026-34094: Customized help link for page protection indicator is relative to subpage name, because the link target is missing the "/wiki/" prefix.Wed, Mar 25, 6:18 PM
Reedy added a subscriber: gerritbot.

Change #1265641 had a related patch set uploaded (by Reedy; author: Bartosz Dziewoński):

[mediawiki/core@master] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265641

Change #1265656 had a related patch set uploaded (by Reedy; author: Bartosz Dziewoński):

[mediawiki/core@REL1_45] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265656

Change #1265662 had a related patch set uploaded (by Reedy; author: Bartosz Dziewoński):

[mediawiki/core@REL1_44] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265662

Change #1265668 had a related patch set uploaded (by Reedy; author: Bartosz Dziewoński):

[mediawiki/core@REL1_43] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265668

Change #1265656 merged by jenkins-bot:

[mediawiki/core@REL1_45] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265656

Change #1265641 merged by jenkins-bot:

[mediawiki/core@master] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265641

Change #1265662 merged by jenkins-bot:

[mediawiki/core@REL1_44] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265662

Change #1265668 merged by jenkins-bot:

[mediawiki/core@REL1_43] SECURITY: Validate link target for protection indicators help page

https://gerrit.wikimedia.org/r/1265668

matmarex changed the visibility from "Custom Policy" to "Public (No Login Required)".