/

CVE-2026-126561

Severity:

HIGH RISK

(7.1)

Missing Authorization (CWE-862) in Semantic MediaWiki

CVE-2026-126561

Awaiting Analysis

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthorized page protection and denial of editing, moving, or deletion

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 a missing authorization check that can let editors without the edit-protection right mark pages as protected. When the permission hook processes that annotation, other editors and administrators may be blocked from editing, moving, or deleting the affected pages.

Affected context

The issue affects Semantic MediaWiki deployments in the reported version range, from 2.5.0 to versions before 7.4.1. It can arise when page annotations or widely transcluded templates set the edit-protection property, and the TitleQuickPermissions hook uses that property to restrict page actions without verifying that the user had permission to set it.

Exploit preconditions

  • Attack surface: Semantic MediaWiki pages and templates that support the Is edit protected annotation
  • Required access: The ability to edit a page or a widely transcluded template; the attacker does not need the edit-protection right
  • Trigger point: The TitleQuickPermissions hook evaluates the edit-protection annotation when users attempt to edit, move, or delete a page
  • Why exploitation is possible: The annotation can influence authorization decisions without a corresponding check that the user is allowed to apply protection

Why this happens

The underlying issue is a missing authorization check, mapped to CWE-862. User-editable semantic data is allowed to affect access-control decisions, but the application does not adequately verify the editor's authority before treating the page as protected. An annotation can therefore act like a permission change rather than ordinary page content.

Potential impact

  • Editors and administrators may be unable to edit, move, or delete affected pages
  • A protection annotation in a widely transcluded template could affect multiple pages
  • Page-management disruption may persist until the annotation or template content is corrected
  • Unauthorized changes to page protection state could undermine administrative workflows

General mitigation guidance

Defensive approaches center on ensuring that authorization state cannot be changed by users who lack the corresponding privilege.

  • Check the actor's protection-management permissions before accepting or applying protection annotations
  • Keep access-control decisions separate from ordinary user-editable content where practical
  • Treat annotations and transcluded template content as untrusted when deriving permissions
  • Apply least privilege to editing roles and provide a controlled administrative process for protection changes
  • Validate authorization consistently at the point where edit, move, and delete decisions are enforced

How teams detect issues like this

  • Review code paths where annotations or template-derived values influence authorization decisions
  • Use static analysis or code review checks to identify permission-sensitive operations without nearby authorization checks
  • Audit changes to protection-related annotations and templates, especially those with broad transclusion
  • Enforce policy checks that require privileged authorization for changes to page-protection state

Sources

SourceLink
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/blob/7.4.0/src/Protection/ProtectionValidator.php#L293-L311
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/commit/ca81329c74aa64077f367e02ad00c079458ef10a
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.4.1
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-9w3p-9m8x-j2mw
vulncheck.comvulncheck.com/advisories/semantic-mediawiki-2.5.0-before-7.4.1-missing-authorization-via-is-edit-protected-annotation

Frequently asked

questions

An editor who can modify a relevant page or template may be able to set the protection annotation without having the edit-protection right.

The affected permission handling may block other editors and administrators from editing, moving, or deleting protected pages.

Verify the user's authorization before allowing annotations or template content to change protection state, and enforce that check when page actions are evaluated.

Keep authorization decisions independent of untrusted editable content, review permission-sensitive data flows, and audit changes to broadly transcluded templates.

Find out what's already
exploitable in your codebase.