id: CVE-2026-77610 info: name: Semantic MediaWiki <= 7.1.0 - Reflected Cross-Site Scripting via Query Debug Output author: s4e-io severity: medium description: | Semantic MediaWiki 7.1.0 and earlier contains a reflected cross-site scripting vulnerability in the query debug output. With the debug request parameter on Special:Ask, DebugFormatter echoes the ASK query string and the generated SQL as raw HTML, escaping only the opening square bracket, so an unauthenticated attacker can inject arbitrary HTML and script through a query value. 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-q5fm-9mx6-44f4 - https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/5cb4c5dd0e1cad1467cb944881d8eb5350089e2e - https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0 - https://nvd.nist.gov/vuln/detail/CVE-2026-77610 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-77610 epss-score: 0.00511 epss-percentile: 0.44167 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,reflected,unauth variables: marker: "{{to_lower(rand_text_alpha(10))}}" payload: "x" http: - method: GET path: - "{{BaseURL}}/index.php?title=Special:Ask&q=%5B%5BText%3A%3A{{url_encode(payload)}}%5D%5D&debug=1" - "{{BaseURL}}/w/index.php?title=Special:Ask&q=%5B%5BText%3A%3A{{url_encode(payload)}}%5D%5D&debug=1" stop-at-first-match: true matchers-condition: and matchers: - type: word part: body words: - "::{{payload}}]]" - "smw-debug-box" - "Debug output" condition: and - type: word part: content_type words: - "text/html" - type: status status: - 200 # digest: 4a0a0047304502206eff8c7ec568620b474aaafe3750449c450e6b24a63b522a76ab9d0b07e8b14d022100d9a6ceb4b817deb32bd463d86906eba2f073e38183c4231a5173397ee5d2370d:922c64590222798bb761d5b6d8e72950