Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2022-23622: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in xwiki xwiki-platform

0
Medium
Published: Wed Feb 09 2022 (02/09/2022, 21:40:10 UTC)
Source: CVE
Vendor/Project: xwiki
Product: 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

AILast updated: 06/23/2025, 16:18:53 UTC

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.

Need more detailed analysis?Upgrade to Pro Console

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: 2/2/2026, 9:02:16 AM

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Related Threats

CVE-2026-20422: CWE-617 Reachable Assertion in MediaTek, Inc. MT2735, MT2737, MT6813, MT6815, MT6833, MT6835, MT6853, MT6855, MT6858, MT6873, MT6875, MT6877, MT6878, MT6879, MT6880, MT6883, MT6885, MT6886, MT6889, MT6890, MT6891, MT6893, MT6895, MT6896, MT6897, MT6899, MT6980, MT6983, MT6985, MT6986, MT6989, MT6990, MT6991, MT6993, MT8668, MT8673, MT8675, MT8676, MT8678, MT8755, MT8771, MT8775, MT8791, MT8791T, MT8792, MT8793, MT8795T, MT8797, MT8798, MT8863, MT8873, MT8883, MT8893

Unknown
VulnerabilityMon Feb 02 2026

CVE-2026-20421: CWE-125 Out-of-bounds Read in MediaTek, Inc. MT2735, MT6833, MT6853, MT6855, MT6873, MT6875, MT6877, MT6880, MT6883, MT6885, MT6889, MT6890, MT6891, MT6893, MT8791

Unknown
VulnerabilityMon Feb 02 2026

CVE-2026-20420: CWE-125 Out-of-bounds Read in MediaTek, Inc. MT2735, MT2737, MT6813, MT6815, MT6833, MT6835, MT6853, MT6855, MT6858, MT6873, MT6875, MT6877, MT6878, MT6879, MT6880, MT6883, MT6885, MT6886, MT6889, MT6890, MT6891, MT6893, MT6895, MT6896, MT6897, MT6899, MT6980, MT6983, MT6985, MT6986, MT6989, MT6990, MT6991, MT6993, MT8676, MT8791

Unknown
VulnerabilityMon Feb 02 2026

CVE-2026-20419: CWE-754 Improper Check for Unusual or Exceptional Conditions in MediaTek, Inc. MT6890, MT6989TB, MT7902, MT7915, MT7916, MT7920, MT7921, MT7922, MT7925, MT7927, MT7981, MT7986, MT8196, MT8668, MT8676, MT8678, MT8775, MT8791T, MT8792, MT8793, MT8796, MT8873, MT8883, MT8893, MT8910

Unknown
VulnerabilityMon Feb 02 2026

CVE-2026-20418: CWE-787 Out-of-bounds Write in MediaTek, Inc. MT7931, MT7933

Unknown
VulnerabilityMon Feb 02 2026

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats