# CVE-2026-40105: 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.

Source: https://junglewise.ai/threats/cve-2026-40105-xwiki-has-reflected-cross-site-scripting-xss-in-page-history  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-15. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-40105 · Severity: medium · CVSS 6.1 · Published 2026-04-15

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.

Technologies: [org.xwiki.platform:xwiki-platform-web-templates (Maven)](https://junglewise.ai/threats/technologies/org-xwiki-platform-xwiki-platform-web-templates). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [Xwiki](https://junglewise.ai/threats/vendors/xwiki).

## Quick answers

**Is CVE-2026-40105 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40105 being exploited in the wild.

**How severe is CVE-2026-40105?** Medium severity, with a CVSS score of 6.1, published 15 April 2026.

**Which products and versions are affected?** org.xwiki.platform:xwiki-platform-web-templates (Maven) ECOSYSTEM:introduced=10.4-rc-1,fixed=16.10.16.

**Is there a fix for CVE-2026-40105?** Yes. org.xwiki.platform:xwiki-platform-web-templates (Maven): upgrade to 16.10.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-40105?** Check whether you run org.xwiki.platform:xwiki-platform-web-templates (Maven) or Xwiki at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.xwiki.platform:xwiki-platform-web-templates (Maven): upgrade to 16.10.16 or later

  ```sh
  # set org.xwiki.platform:xwiki-platform-web-templates to 16.10.16 in your pom.xml or build.gradle
  ```


## Affected products

- org.xwiki.platform:xwiki-platform-web-templates (Maven) ECOSYSTEM:introduced=10.4-rc-1,fixed=16.10.16
- Xwiki

## Identifiers

- CVE-2026-40105
- GHSA-w4fj-87j5-f25c

## References

- [https://api.github.com/users/mikecole-mg](https://api.github.com/users/mikecole-mg)
- [https://github.com/mikecole-mg](https://github.com/mikecole-mg)
- [https://api.github.com/users/mikecole-mg/gists%7B/gist_id%7D](https://api.github.com/users/mikecole-mg/gists%7B/gist_id%7D)
- [https://api.github.com/users/mikecole-mg/repos](https://api.github.com/users/mikecole-mg/repos)
- [https://avatars.githubusercontent.com/u/171299069?v=4](https://avatars.githubusercontent.com/u/171299069?v=4)
- [https://api.github.com/users/mikecole-mg/events%7B/privacy%7D](https://api.github.com/users/mikecole-mg/events%7B/privacy%7D)

## Related threats

- [XWiki's REST APIs can list all pages/spaces, leading to unavailability](https://junglewise.ai/threats/cve-2026-40104-xwiki-s-rest-apis-can-list-all-pages-spaces-leading-to)
- [XWiki Affected by Reflected Cross-Site Scripting (XSS) in Error Messages](https://junglewise.ai/threats/cve-2026-24128-xwiki-affected-by-reflected-cross-site-scripting-xss-in-error)
- [XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication](https://junglewise.ai/threats/cve-2025-66472-xwiki-platform-is-a-generic-wiki-platform-offering-runtime)
- [XWiki allows Reflected XSS in two templates](https://junglewise.ai/threats/cve-2025-32430-xwiki-allows-reflected-xss-in-two-templates)
- [In XWiki Platform, payloads stored in content is executed when a user with script/programming right edit them](https://junglewise.ai/threats/cve-2024-43401-in-xwiki-platform-payloads-stored-in-content-is-executed-when-a)
