/

CVE-2026-126566

Severity:

HIGH RISK

(7.1)

Incorrect Authorization (CWE-863) in Semantic MediaWiki

CVE-2026-126566

Awaiting Analysis

Vulnerability type

Category:

Incorrect Authorization

CWE:

CWE-863

Impact:

Protection bypass and unauthorized changes to protected pages

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Semantic MediaWiki has an authorization flaw in how it checks changes to page protection. An editor who can modify a transcluded template may be able to remove edit and move protection that was recorded under an administrator's name.

Affected context

The issue is reported in Semantic MediaWiki versions 7.3.1 through versions before 7.4.1. It occurs in EditProtectionUpdater::userMayChangeProtection(), where authorization for protection changes is checked against the page's latest revision author. The risky condition involves a transcluded template whose content can affect the page's edit-protection state.

Exploit preconditions

  • Attack surface: Editing a template that is transcluded on a page with edit or move protection.
  • Required access: Permission to edit the relevant template or otherwise change the content that influences the protection update.
  • Trigger point: Processing an edit that updates protection state based on the template's semantic content.
  • Why exploitation is possible: The authorization check can rely on the latest revision author rather than correctly verifying the user's authority to change the protection.

Why this happens

The authorization decision is based on the wrong identity or context: the page's latest revision author is used when determining whether protection may be changed. This is an incorrect authorization pattern, mapped to CWE-863, because the check does not reliably establish that the actor causing the protection change is permitted to make it.

Potential impact

  • An editor may be able to remove edit protection from a page.
  • An editor may be able to remove move protection from a page.
  • Protected content could be changed or moved by users who should not have that authority.
  • Protection settings and audit expectations may become unreliable.

General mitigation guidance

Defensive approaches focus on making protection changes depend on an explicit, correctly scoped authorization decision.

  • Verify the permissions of the user initiating the change against the target page and the specific protection action.
  • Avoid deriving authorization from revision authorship or other indirect identity signals.
  • Treat transcluded content and semantic properties as inputs, not as proof of authority.
  • Use secure-by-default protection behavior, preserving existing restrictions when authorization is uncertain.
  • Apply least privilege to template editing and protection-management capabilities.

How teams detect issues like this

Review authorization flows that update page restrictions, especially where transclusion, semantic properties, or revision metadata influence the decision.

  • Use static analysis and code review to identify checks based on revision authorship rather than the current actor's permissions.
  • Test that users with template-editing access cannot weaken protections unless explicitly authorized to do so.
  • Enforce policies requiring authorization checks to name the actor, target resource, and requested action.
  • Automated security review tools may help flag indirect or inconsistently scoped authorization checks.

Sources

SourceLink
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/blob/7.4.0/src/DataUpdater.php#L360-L375
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/blob/7.4.0/src/Protection/EditProtectionUpdater.php#L147-L200
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/commit/32ca6d8fc75735aa7a2ecc573886391da126da9b
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.4.1
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-gh59-2vh3-6cgm
vulncheck.comvulncheck.com/advisories/semantic-mediawiki-7.3.1-before-7.4.1-incorrect-authorization-via-edit-protection-annotations

Frequently asked

questions

An editor who can modify a relevant transcluded template may be able to influence protection updates, depending on the wiki's permissions and page configuration.

The described behavior involves protection recorded under an administrator's name, but the reported risk is that an editor with relevant template-editing access may affect that protection. The exact access requirements depend on the deployment.

Check whether the current actor is authorized to make the specific protection change on the target page. Do not use the latest revision author as a substitute for that check.

Keep authorization decisions explicit and resource-specific, treat transcluded content as untrusted input, and test that indirect content changes cannot weaken access controls.

Find out what's already
exploitable in your codebase.