---
id: "CVE-2026-126567"
page: "https://infrastack.ai/live/CVE-2026-126567"
kind: "vulnerability"
aliases: ["CVE-2026-126567"]
title: "Semantic MediaWiki: stored script injection through Special:Ask results"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["elasticstore", "mediawiki", "package", "semantic-mediawiki"]
not_affected_if: ["default-config", "patched-version"]
published_at: "2026-11-11T03:16:51+00:00"
first_seen_at: "2026-11-11T03:25:00+00:00"
updated_at: "2026-11-11T03:26:27+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126567", "first_seen_at": "2026-11-11T03:25:00+00:00"}]
exploit_sources: []
---

# Semantic MediaWiki: stored script injection through Special:Ask results

Link for people: https://infrastack.ai/live/CVE-2026-126567 (this .md is for agents)

Semantic MediaWiki 3.0.0 before 7.4.1 does not escape output on Special:Ask when the ElasticStore backend is used, so stored markup runs as script. An attacker with edit rights can store the payload and get an administrator to open a crafted Special:Ask link, running script in the victim's session.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed Semantic MediaWiki version in Special:Version or in `composer.lock` for `mediawiki/semantic-media-wiki`
- Check whether `$smwgElasticsearchEndpoints` or the ElasticStore backend is configured in `LocalSettings.php`

## Fix

- Semantic MediaWiki: `7.4.1` (fixed version per the description: versions before 7.4.1 are affected)

## Timeline

- 2026-11-11T03:25:00+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126567

## Documents

- [advisory] Vendor advisory: github.com https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-7j96-w9cc-r7rq
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/semantic-mediawiki-3.0.0-before-7.4.1-stored-xss-via-special-ask-debug-output
- [fix] Patch: github.com https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/fca9922835f4353e67a71cfef4d527d46e7c3ad3
- [fix] Release notes: github.com https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.4.1

## From the sources

Semantic MediaWiki 3.0.0 before 7.4.1 contains a stored cross-site scripting vulnerability in Special:Ask with the ElasticStore backend, allowing users with edit rights to inject script through unescaped native_result and score_set output. Attackers can store markup in a Text property or subobject name, then lure victims including administrators to a crafted Special:Ask link to execute script in their session.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
