Cross site scripting in registration template in xwiki-platform
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions there is a cross site scripting (XSS) vector in the `registerinline.vm` template related to the `xredirect` hidden field. This template is only used in the following conditions: 1. The wiki must be open to registration for anyone. 2. The wiki must be closed to view for Guest users or more specifically the XWiki.Registration page must be forbidden in View for guest user. A way to obtain the second condition is when administrators checked the "Prevent unregistered users from viewing pages, regardless of the page rights" box in the administration rights. This issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, 13.10.3. There are two main ways for protecting against this vulnerability, the easiest and the best one is by applying a patch in the `registerinline.vm` template, the patch consists in checking the value of the xredirect field to ensure it matches: `<input type="hidden" name="xredirect" value="$escapetool.xml($!request.xredirect)" />`. If for some reason it's not possible to patch this file, another workaround is to ensure "Prevent unregistered users from viewing pages, regardless of the page rights" is not checked in the rights and apply a better right scheme using groups and rights on spaces.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | 2.6.1 to before 12.10.11; 13.0.0 to before 13.4.7; 13.10.0 to before 13.10.3 | 12.10.11, 13.4.7, 13.10.3 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-web-templates (Maven) | 2.6.1 to before 12.10.11 | 12.10.11 | Patch available | GHSA-gx6h-936c-vrrr |
| — | org.xwiki.platform:xwiki-platform-web-templates (Maven) | 13.0.0 to before 13.4.7 | 13.4.7 | Patch available | GHSA-gx6h-936c-vrrr |
| — | org.xwiki.platform:xwiki-platform-web-templates (Maven) | 13.10.0 to before 13.10.3 | 13.10.3 | Patch available | GHSA-gx6h-936c-vrrr |
- xwiki-platform VendorXWiki Affected 2.6.1 to before 12.10.11; 13.0.0 to before 13.4.7; 13.10.0 to before 13.10.3 Fixed in 12.10.11, 13.4.7, 13.10.3 Patch available CNA
- org.xwiki.platform:xwiki-platform-web-templates (Maven) Vendor— Affected 2.6.1 to before 12.10.11 Fixed in 12.10.11 Patch available GHSA-gx6h-936c-vrrr
- org.xwiki.platform:xwiki-platform-web-templates (Maven) Vendor— Affected 13.0.0 to before 13.4.7 Fixed in 13.4.7 Patch available GHSA-gx6h-936c-vrrr
- org.xwiki.platform:xwiki-platform-web-templates (Maven) Vendor— Affected 13.10.0 to before 13.10.3 Fixed in 13.10.3 Patch available GHSA-gx6h-936c-vrrr
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* | up to 12.10.10; 13.0 – 13.4.6 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:13.10:*:*:*:*:*:*:* | 13.10 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:13.10.1:*:*:*:*:*:*:* | 13.10.1 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:13.10.2:*:*:*:*:*:*:* | 13.10.2 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:14.0:*:*:*:*:*:*:* | 14.0 | Vulnerable | XWiki |
- cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* Versions up to 12.10.10; 13.0 – 13.4.6 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:13.10:*:*:*:*:*:*:* Versions 13.10 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:13.10.1:*:*:*:*:*:*:* Versions 13.10.1 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:13.10.2:*:*:*:*:*:*:* Versions 13.10.2 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:14.0:*:*:*:*:*:*:* Versions 14.0 Vulnerable ·XWiki
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 12.10.11, 13.4.7, 13.10.3
- Fix · GHSA-gx6h-936c-vrrr org.xwiki.platform:xwiki-platform-web-templates (Maven) Fixed in 12.10.11 Advisory →
- Fix · GHSA-gx6h-936c-vrrr org.xwiki.platform:xwiki-platform-web-templates (Maven) Fixed in 13.4.7 Advisory →
- Fix · GHSA-gx6h-936c-vrrr org.xwiki.platform:xwiki-platform-web-templates (Maven) Fixed in 13.10.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23622
- 2026-10-03 Alias added: GHSA-gx6h-936c-vrrr
References
Patch 2
Advisory 2
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2022-23622 · CVE Program
- CVE-2022-23622 · NVD
- FIRST EPSS
- GHSA-gx6h-936c-vrrr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences