Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain smw-patternedit + interface-edit rights
-
DeliverySeed markup payload in MediaWiki:Smw_allows_pattern
-
ExploitEditor annotates matching Allows pattern value
-
ExecutionVictim views property's Special:Browse page
-
ImpactScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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
The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,
An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi
The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf
The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
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
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun
An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu
EUVD-2026-129138
GHSA-g58h-mqwj-q67g
NVD
CVE.org
EPSS
Exploit-DB