Skip to main content

Semantic MediaWiki CVE-2026-130790

| EUVDEUVD-2026-129138 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-18 disclosure@vulncheck.com GHSA-g58h-mqwj-q67g
4.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain smw-patternedit + interface-edit rights
  2. Delivery
    Seed markup payload in MediaWiki:Smw_allows_pattern
  3. Exploit
    Editor annotates matching Allows pattern value
  4. Execution
    Victim views property's Special:Browse page
  5. Impact
    Script executes in viewer's session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Not a default-config remote-unauthenticated flaw. Prerequisites, all confirmed by the GHSA advisory: (1) an account with the smw-patternedit right - granted by default only to the curator group - plus the core interface-edit right for the MediaWiki namespace, to seed a crafted reference name in MediaWiki:Smw_allows_pattern; (2) pattern validation enabled, which is the default; (3) any editor to annotate an Allows pattern property value matching the seeded reference so it validates and is stored verbatim; (4) a victim to view that property's Special:Browse page (UI:P) for the payload to fire. Limiting factors: the privileged, administrative-trust seeding step (PR:H), the two-actor chain, and the required victim page view meaningfully constrain exploitation. Deployment caveat from the advisory: where the smw-patternedit principals also hold the separate site-JavaScript editing right, they could already inject script and this grants nothing new; it is a genuine capability crossing only where smw-patternedit is held by groups without site-JS edit.

Impact

This is a stored XSS (CWE-79) with a conservative real-world risk despite being network-reachable. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N, score 4.8 Medium) and the GHSA advisory agree on the key limiters: exploitation requires PR:H (the smw-patternedit right, granted by default only to the curator group, PLUS the core interface-edit right for the MediaWiki namespace) to seed the payload, then a second actor (any editor) to annotate the matching value, then UI:P - a victim must view the property's Special:Browse page. No EPSS score was provided and the CVE is not on CISA KEV, so there is no evidence of widespread automated exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real-but-not-urgent priority. The GHSA advisory itself notes a deployment-dependent caveat that materially lowers risk: where the same principals already hold the separate site-JavaScript editing right, this sink grants no new capability; it is a genuine privilege/audience crossing only where smw-patternedit is granted to groups lacking site-JS edit. Net: a legitimate stored XSS worth patching on a normal cadence, but the privileged, multi-actor, config-dependent precondition makes it a low-to-moderate practical priority rather than a drop-everything issue.

Exploit ScenarioDerived

An attacker holding smw-patternedit plus MediaWiki-namespace interface-edit (by default a curator) adds a reference line to MediaWiki:Smw_allows_pattern whose name is an HTML/JS payload such as '<img src=x onerror=alert(document.domain)>|.*'. An ordinary editor then annotates that value on a property page ([[Allows pattern::<img src=x onerror=alert(document.domain)>]]), where it validates against the seeded reference and is stored verbatim; when any user - including unprivileged readers - views that property's Special:Browse page, AllowsPatternValue emits it as the unescaped anchor body and the script runs in the viewer's session. A detailed, reproducible proof-of-concept with exact payloads and rendered output is published in the GHSA advisory; it is a public PoC reference, not independently verified as packaged working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Stored cross-site scripting in the Semantic MediaWiki extension (mediawiki/semantic-media-wiki 2.5.0 through 7.3.x) allows a user holding the smw-patternedit right to seed an HTML payload as a reference name in MediaWiki:Smw_allows_pattern, which a second, ordinary editor then unknowingly locks into a stored property value by annotating the matching Allows pattern reference. Because AllowsPatternValue places that raw value as the unescaped body of an anchor on Special:Browse, the script executes in the session of every viewer of the affected property page, including unprivileged readers. Exploitation requires an administrative-trust seeding account (PR:H), a second actor to annotate, pattern validation enabled (the default) and a victim page view (UI:R), and the public GHSA includes reproduction steps but there is no KEV listing or confirmed actively exploited in-the-wild use at time of analysis. The deployment caveat is that where the smw-patternedit holders already hold the separate site-JavaScript editing right they could inject script anyway, so this is a genuine capability crossing mainly where that right is granted to groups without site-JS edit.

RemediationAI

Upgrade mediawiki/semantic-media-wiki to 7.4.0, the fixed release listed in the package metadata; note that the advisory text was written when no fix commit was identified, so verify against the vendor advisory (https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-x29v-5v76-f3xg) that 7.4.0 contains the escaping change in SMW\DataValues\AllowsPatternValue before considering yourself covered. Where an upgrade cannot be applied immediately, the advisory's interim mitigation is to restrict the smw-patternedit right to fully trusted users - by default only the curator group holds it, so remove it from any custom groups that do not also hold site-JavaScript editing - and to audit the existing contents of MediaWiki:Smw_allows_pattern for seeded markup reference names (trade-off: curators lose the ability to maintain pattern validation lists until a fix is deployed, and auditing is a manual content review that must be repeated). As defense in depth, apply a Content Security Policy that blocks inline event-handler execution, accepting the side effect that it may break other inline script on the wiki. The permanent fix itself is output escaping of the stored reference value before it enters the anchor body, ideally paired with sanitization of reference names at parse time so angle brackets and control characters cannot be stored.

Affected VersionsENISA

SemanticMediaWiki 2.5.0 <7.4.0

Affected Packages

euvd semanticmediawiki fix: 7.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw sits in the Semantic MediaWiki data-value layer for the 'Allows pattern' property type (SMW\DataValues\AllowsPatternValue) and is a classic CWE-79 output-encoding failure on a stored value. The reference list on MediaWiki:Smw_allows_pattern is parsed by AllowsPatternValueParser, which splits each line on the first separator and stores the reference name verbatim with no sanitization. On output, getShortHtmlText builds an anchor whose title is a fixed reference-page ID (REFERENCE_PAGE_ID) and then places the raw stored value as the anchor body via Html::rawElement, so unlike the sibling allows-list value - whose title is derived from the value and would be nulled by a markup value - the anchor is always valid and the payload always lands in the DOM. getLongHtmlText forwards to the same path, and shared emission runs through HtmlBuilder (rawElement span body) into the templates/FactboxProperty.mustache triple-brace {{{html-values}}} field, with SpecialBrowse::addHTML applying no parser or sanitizer. The invariant that a stored pattern reference must be HTML-safe before entering an anchor body is simply not enforced at either the parse or the render stage; the advisory's suggested fix is element-body escaping (htmlspecialchars-equivalent) in the value class, plus optional sanitization of the reference name at parse time and a CSP as defense in depth.

Know when Mediawiki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 4.8 MEDIUM

Seeding needs the privileged smw-patternedit plus interface-edit right (PR:H), a victim must view the Browse page (UI:R), and stored XSS runs in other users' browsers (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 18, 2026 - 20:03 EUVD

DescriptionCVE.org

SemanticMediaWiki from 2.5.0 before 7.4.0 contains a stored cross-site scripting vulnerability that allows users with the smw-patternedit right to inject script by seeding markup reference names in MediaWiki:Smw_allows_pattern. Once an editor annotates the matching Allows pattern value, AllowsPatternValue emits it unescaped on Special:Browse, executing JavaScript in every viewer's session.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular MediaWiki extension, but deployed only on semantic-wiki sites, not core
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2014-1610 MEDIUM POC
6.0 Jan 30

MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is

CVE-2015-8009 CRITICAL POC
9.8 Jul 25

The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,

CVE-2023-37303 CRITICAL POC
9.8 Jun 30

An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi

CVE-2022-29906 CRITICAL POC
9.8 Apr 29

The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf

CVE-2022-29904 CRITICAL POC
9.8 Apr 29

The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ

CVE-2022-28206 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2022-28205 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2021-36128 CRITICAL POC
9.8 Jul 02

An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2021-36126 CRITICAL POC
9.8 Jul 02

An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2017-8809 CRITICAL
9.8 Nov 15

api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera

CVE-2024-47849 HIGH POC
8.8 Oct 05

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun

CVE-2021-36132 HIGH POC
8.8 Jul 02

An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy