CVE-2022-29252: Cross-site Scripting in wiki manager join wiki page
7.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.73674%
CWE
Published
5/25/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki | maven | < 12.10.11 | 12.10.11 |
| org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki | maven | >= 13.0.0, < 13.4.7 | 13.4.7 |
| org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki | maven | >= 13.5.0, < 13.10.3 | 13.10.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper output encoding in the WikiManager.JoinWiki template. The original code directly injected the 'requestJoin' request parameter into an HTML input field without XML escaping, as shown in the diff. This allows attackers to inject arbitrary JavaScript via the 'requestJoin' parameter. The patched version explicitly adds $escapetool.xml to sanitize the output. While this is a template-level issue rather than a traditional function, the Velocity template rendering mechanism responsible for processing $!request.requestJoin is the vulnerable component.