/

CVE-2026-116880

Severity:

HIGH RISK

(7.1)

CSRF (CWE-352) in Semantic MediaWiki Special:SMWAdmin

CVE-2026-116880

Analyzed

Vulnerability type

Category:

Cross-Site Request Forgery

CWE:

CWE-352

Impact:

Semantic data loss and resource exhaustion

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 contains a cross-site request forgery vulnerability in Special:SMWAdmin that can cause privileged administrative actions to execute without the user's intentional approval. If an authenticated user with the smw-admin permission visits a malicious page, an attacker may trigger schema setup, entity disposal, or job operations.

Affected context

The issue affects Semantic MediaWiki deployments using the Special:SMWAdmin interface when an authenticated user with the smw-admin capability can be induced to load attacker-controlled content. The risk arises when the interface overwrites its edit token with a newly generated valid token rather than maintaining a token bound to the intended request and user action.

Exploit preconditions

  • Attack surface: The Special:SMWAdmin administrative web interface
  • Required access: An authenticated victim with the smw-admin permission
  • Trigger point: The victim must visit or load attacker-controlled content that submits requests to administrative actions
  • Why exploitation is possible: The interface replaces the expected request token with a freshly generated valid token, weakening the intended CSRF protection and allowing cross-site requests to be accepted

Why this happens

The vulnerability results from incorrect CSRF token handling in the administrative interface. By overwriting the expected wpEditToken with a newly generated valid token, the application fails to reliably bind sensitive state-changing requests to an intentional action from the authenticated user. This behavior maps to CWE-352, Cross-Site Request Forgery, because a trusted browser session may be used to perform administrative operations initiated by an untrusted site.

Potential impact

  • An attacker may trigger schema setup actions without the administrator's intent.
  • Semantic entities or related data could be disposed of, causing data loss.
  • Repeated or expensive job actions could consume application resources.
  • Administrative workflows may be disrupted.
  • Semantic data integrity could be affected.

General mitigation guidance

Mitigation generally focuses on preserving strong request-origin validation for

every state-changing administrative operation.

Common defensive patterns include:

  • Use framework-provided CSRF protections without replacing or regenerating tokens in ways that weaken request binding.
  • Require unpredictable, session-bound tokens for all state-changing requests.
  • Validate request origin and, where appropriate, enforce suitable SameSite cookie behavior.
  • Require explicit confirmation for destructive or resource-intensive administrative actions.
  • Apply least privilege so only necessary users receive the smw-admin capability.
  • Add server-side authorization and CSRF checks independently of client-side controls.

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis and code review for token overwrites, token regeneration, or missing CSRF checks around state-changing handlers.
  • Review of administrative endpoints that accept cross-site form submissions or browser-initiated requests.
  • Tests that submit sensitive actions without valid session-bound tokens and verify rejection.
  • Web application policy checks for unsafe cross-origin requests and cookie settings.
  • Monitoring for unexpected schema, entity-disposal, or job actions associated with valid administrator sessions.

Automated security review tools may help flag missing or inconsistently applied CSRF protections.

Sources

SourceLink
github.comgithub.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-7f7v-2qf4-gfq3
vulncheck.comvulncheck.com/advisories/semantic-mediawiki-3.0.0-before-7.3.1-csrf-via-special-smwadmin-maintenance-actions

Frequently asked

questions

Yes, in the sense that an attacker can host or deliver a malicious page remotely.

However, exploitation depends on an authenticated smw-admin user visiting that

content while an eligible session is active.

Not necessarily. The key requirement is access to a victim who has the

smw-admin permission and whose browser can reach the affected interface.

Preserve framework-managed, session-bound CSRF validation for every

state-changing administrative request, and do not overwrite expected tokens

with independently generated values.

Combine strict CSRF testing, secure cookie and origin policies, explicit

confirmation for destructive actions, least-privilege administration, and

code-review checks for token handling changes.

Find out what's already
exploitable in your codebase.