Semantic MediaWiki affected by reflected XSS in `Special:Ask` via a forged cursor pagination token
CVE-2026-77616 (GitHub advisory GHSA-cx86-7xwp-w9wf) is a medium-severity vulnerability with a CVSS 3.1 base score of 6.1, classed as Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79), in mediawiki/semantic-media-wiki (Packagist). Affected versions: >= 7.0.0, <= 7.1.0. It is fixed in 7.2.0.
Published 18 Sept 2026Updated 18 Sept 2026
- CVE ID
- CVE-2026-77616
- GHSA ID
- GHSA-cx86-7xwp-w9wf
- EPSS
- 0.2%higher than 10% of CVEs
- Weakness (CWE)
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- KEV status
- Not in KEV
- Published
- 18 Sept 2026
- Updated
- 18 Sept 2026
- Ecosystem
- Packagist (PHP)
- Assigned by (CNA)
- GitHub_M
Summary
Source: OSV (GitHub advisory)
Reflected XSS via a forged cursor pagination token
Failure mode
Special:Ask accepts a cursor query parameter for keyset pagination (added in 7.0.0). The token is decoded by CursorEncoder, which is an unsigned base64url-encoded JSON blob, so its contents are fully attacker-controlled. When the cursor's sort anchor does not match the request's sort= / order=, QueryCreator::applyCursorIfRequested() builds an error message by interpolating the attacker-controlled sort_prop / sort_order values into a raw string via Query::addErrors().
Unlike SMW's message-key errors, this raw string bypasses the message layer's sanitisation (ProcessingErrorMsgHandler::normalizeAndDecodeMessages() passes a non-key, non-encoded string through unchanged). ErrorWidget::queryError() then assembles the errors and passes them to Html::errorBox(), whose first argument is emitted as raw HTML. The result is a reflected cross-site scripting vulnerability: a crafted cursor token containing markup in sort_prop (or sort_order) executes script in the victim's browser on the wiki origin.
No authentication or special permission is required. The payload is delivered via a crafted link, e.g. Special:Ask?q=...&p[cursor]=<forged token> where the token decodes to {"v":1,"sort_prop":"<script>...</script>"}. Confirmed executing in a browser; the responses carry no Content-Security-Policy, so inline script is not blocked.
Remediation
- Output-encode the attacker-controlled
sort_prop/sort_ordervalues before they are interpolated into the error text inQueryCreator, so no raw user input enters the error stream. - Defense in depth: the
format=debugoutput path that reflected the same error text was hardened separately in GHSA-q5fm-9mx6-44f4.
Maintenance note
Query error strings are rendered as raw HTML by ErrorWidget::queryError() via Html::errorBox(). Any error added through Query::addErrors() that embeds user-controlled text must be output-encoded (or use a message key); pagination and validation error text is attacker-influenced and must not be treated as trusted.
Technical details
Source: GitHub Advisory Database
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NMedium6.1Base score from GitHub Advisory Database
- Attack Vector AV
- Network
- Attack Complexity AC
- Low
- Privileges Required PR
- None
- User Interaction UI
- Required
- Scope S
- Changed
- Confidentiality C
- Low
- Integrity I
- Low
- Availability A
- None
CISA SSVC decision points
- Exploitation
- none
- No public exploitation evidence
- Automatable
- no
- Needs manual steps per target
- Technical impact
- partial
- Limited control of the affected system
CISA Coordinator assessment (SSVC 2.0.3) via CVE.org.
Affected packages
Source: OSV (GitHub advisory)
- mediawiki/semantic-media-wikiPackagist (PHP)
pkg:composer/mediawiki/semantic-media-wiki- Affected versions
- >= 7.0.0, <= 7.1.0
- Fixed in
- 7.2.0
Show 2 listed versions
- 7.0.0
- 7.1.0
| Package | Affected versions | Fixed in |
|---|---|---|
mediawiki/semantic-media-wiki Packagist (PHP) pkg:composer/mediawiki/semantic-media-wiki |
Show 2 listed versions
|
|
Fix
Source: OSV (GitHub advisory)
Fix available
Upgrade to 7.2.0 or later.
Release commits
The commits each fixed release tag points at. They usually bump the version rather than contain the fix itself.
Vulnerability intelligence
Root cause analysis
Vulnerable functions
References
Advisories 4
Questions about CVE-2026-77616
- What is the GHSA ID for CVE-2026-77616?
- GitHub tracks CVE-2026-77616 as GHSA-cx86-7xwp-w9wf.
- What is the CVSS score of CVE-2026-77616?
- CVE-2026-77616 has a CVSS 3.1 base score of 6.1 (Medium), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
- Which versions are affected by CVE-2026-77616?
- mediawiki/semantic-media-wiki (Packagist): >= 7.0.0, <= 7.1.0.
- How do I fix CVE-2026-77616?
- Upgrade to 7.2.0 or later.
- What is the Package URL (PURL) for CVE-2026-77616?
- The affected package's PURL is pkg:composer/mediawiki/semantic-media-wiki.
- Is CVE-2026-77616 exploited in the wild?
- CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2026-77616. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. CISA's SSVC assessment rates exploitation as "none". EPSS estimates a 0.2% chance of exploitation in the next 30 days, higher than 10% of CVEs.
Data sources
Upstream records
- OSV (GitHub advisory)LoadedRaw JSON
- GitHub Advisory DatabaseLoadedRaw JSON
- OSV (CVE record)LoadedRaw JSON
- CVE.orgLoaded
- CISA KEV catalogLoaded
Fetched 6 days ago (8 Oct 2026, 04:55 UTC). Records refresh automatically after 24 hours.
Where each part of this page came from
- Title and description
- OSV (GitHub advisory)
- Severity score
- GitHub Advisory Database
- Weakness (CWE)
- GitHub Advisory Database
- Affected packages
- OSV (GitHub advisory)
- Fix
- OSV (GitHub advisory)
- References
- Computed by CVEminer
- SSVC
- CVE.org
- KEV status
- CISA KEV catalog
- EPSS
- GitHub Advisory Database
OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.