CVE-2022-23622: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in xwiki xwiki-platform
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.
AI Analysis
Technical Summary
CVE-2022-23622 is a medium-severity cross-site scripting (XSS) vulnerability affecting the XWiki Platform, a generic wiki platform used to build collaborative applications. The vulnerability arises from improper neutralization of input in the `registerinline.vm` template, specifically related to the `xredirect` hidden field. This field is used during user registration and is vulnerable to injection of malicious scripts if not properly sanitized. The vulnerability manifests only under two specific conditions: first, the wiki instance must allow open registration for any user; second, the wiki must restrict guest users from viewing pages, typically enforced by enabling the "Prevent unregistered users from viewing pages, regardless of the page rights" setting. Under these conditions, an attacker can craft a malicious payload in the `xredirect` parameter that, when processed by the vulnerable template, executes arbitrary JavaScript in the context of the victim's browser. This can lead to session hijacking, credential theft, or other malicious actions. The issue is patched in versions 12.10.11, 13.4.7, and 13.10.3 and later. The recommended fix involves sanitizing the `xredirect` field using XML escaping to neutralize any embedded scripts. If patching is not feasible, administrators are advised to disable the restrictive guest view setting and implement a more granular access control scheme using groups and rights on spaces to mitigate exposure. No known exploits have been reported in the wild, but the vulnerability remains a risk for misconfigured or outdated XWiki deployments.
Potential Impact
For European organizations using XWiki Platform, especially those with open registration and restrictive guest access settings, this vulnerability poses a risk of client-side script injection attacks. Successful exploitation could compromise user sessions, leading to unauthorized access to sensitive wiki content or user credentials. This can undermine the integrity and confidentiality of collaborative data, potentially disrupting business operations or leaking proprietary information. Organizations in sectors such as government, education, and enterprises relying on XWiki for internal knowledge management are particularly at risk. The vulnerability's exploitation requires no authentication but depends on specific configuration settings, which may limit its scope. However, given the collaborative nature of wikis, even limited exploitation can facilitate lateral movement or social engineering attacks within an organization. The absence of known active exploits reduces immediate threat but does not eliminate the risk, especially for organizations slow to apply patches or review access controls.
Mitigation Recommendations
1. Apply the official patches provided in XWiki versions 12.10.11, 13.4.7, 13.10.3, or later to ensure the `registerinline.vm` template properly sanitizes the `xredirect` field using XML escaping. 2. If patching is not immediately possible, disable the "Prevent unregistered users from viewing pages, regardless of the page rights" setting to prevent the vulnerable code path from being triggered. 3. Implement strict access control policies using groups and rights on spaces to restrict registration and page visibility, minimizing exposure to untrusted users. 4. Conduct a thorough audit of wiki configurations to identify instances with open registration and restrictive guest access, prioritizing remediation. 5. Monitor web server logs for suspicious requests targeting the registration page with unusual `xredirect` parameters indicative of attempted XSS payloads. 6. Educate administrators on secure configuration practices for XWiki to prevent similar issues. 7. Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block malicious input patterns targeting the `xredirect` parameter as an interim protective measure.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Italy, Spain, Belgium
CVE-2022-23622: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in xwiki xwiki-platform
Description
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.
AI-Powered Analysis
Technical Analysis
CVE-2022-23622 is a medium-severity cross-site scripting (XSS) vulnerability affecting the XWiki Platform, a generic wiki platform used to build collaborative applications. The vulnerability arises from improper neutralization of input in the `registerinline.vm` template, specifically related to the `xredirect` hidden field. This field is used during user registration and is vulnerable to injection of malicious scripts if not properly sanitized. The vulnerability manifests only under two specific conditions: first, the wiki instance must allow open registration for any user; second, the wiki must restrict guest users from viewing pages, typically enforced by enabling the "Prevent unregistered users from viewing pages, regardless of the page rights" setting. Under these conditions, an attacker can craft a malicious payload in the `xredirect` parameter that, when processed by the vulnerable template, executes arbitrary JavaScript in the context of the victim's browser. This can lead to session hijacking, credential theft, or other malicious actions. The issue is patched in versions 12.10.11, 13.4.7, and 13.10.3 and later. The recommended fix involves sanitizing the `xredirect` field using XML escaping to neutralize any embedded scripts. If patching is not feasible, administrators are advised to disable the restrictive guest view setting and implement a more granular access control scheme using groups and rights on spaces to mitigate exposure. No known exploits have been reported in the wild, but the vulnerability remains a risk for misconfigured or outdated XWiki deployments.
Potential Impact
For European organizations using XWiki Platform, especially those with open registration and restrictive guest access settings, this vulnerability poses a risk of client-side script injection attacks. Successful exploitation could compromise user sessions, leading to unauthorized access to sensitive wiki content or user credentials. This can undermine the integrity and confidentiality of collaborative data, potentially disrupting business operations or leaking proprietary information. Organizations in sectors such as government, education, and enterprises relying on XWiki for internal knowledge management are particularly at risk. The vulnerability's exploitation requires no authentication but depends on specific configuration settings, which may limit its scope. However, given the collaborative nature of wikis, even limited exploitation can facilitate lateral movement or social engineering attacks within an organization. The absence of known active exploits reduces immediate threat but does not eliminate the risk, especially for organizations slow to apply patches or review access controls.
Mitigation Recommendations
1. Apply the official patches provided in XWiki versions 12.10.11, 13.4.7, 13.10.3, or later to ensure the `registerinline.vm` template properly sanitizes the `xredirect` field using XML escaping. 2. If patching is not immediately possible, disable the "Prevent unregistered users from viewing pages, regardless of the page rights" setting to prevent the vulnerable code path from being triggered. 3. Implement strict access control policies using groups and rights on spaces to restrict registration and page visibility, minimizing exposure to untrusted users. 4. Conduct a thorough audit of wiki configurations to identify instances with open registration and restrictive guest access, prioritizing remediation. 5. Monitor web server logs for suspicious requests targeting the registration page with unusual `xredirect` parameters indicative of attempted XSS payloads. 6. Educate administrators on secure configuration practices for XWiki to prevent similar issues. 7. Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block malicious input patterns targeting the `xredirect` parameter as an interim protective measure.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2022-01-19T00:00:00.000Z
- Cisa Enriched
- true
Threat ID: 682d9842c4522896dcbf258a
Added to database: 5/21/2025, 9:09:22 AM
Last enriched: 6/23/2025, 4:18:53 PM
Last updated: 7/30/2025, 5:29:31 AM
Views: 10
Related Threats
CVE-2025-9060: CWE-20 Improper Input Validation in MSoft MFlash
CriticalCVE-2025-8675: CWE-918 Server-Side Request Forgery (SSRF) in Drupal AI SEO Link Advisor
MediumCVE-2025-8362: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Drupal GoogleTag Manager
MediumCVE-2025-8361: CWE-962 Missing Authorization in Drupal Config Pages
HighCVE-2025-8092: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Drupal COOKiES Consent Management
HighActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.