CVE-2022-36094: XWiki Platform Web Parent POM vulnerable to XSS in the attachment history
8.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97636%
CWE
Published
9/16/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.xwiki.platform:xwiki-platform-web | maven | >= 1.0, < 13.10.6 | 13.10.6 |
| org.xwiki.platform:xwiki-platform-web | maven | >= 14.0, < 14.3-rc-1 | 14.3-rc-1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing HTML escaping in two locations in viewattachrev.vm: 1) In the page title localization string interpolation, and 2) In the <img> alt attribute. The commit patch adds $escapetool.xml() to sanitize the filename input. As Velocity templates control HTML generation, unescaped user-controlled input (attachment filenames) in these template variables directly enables XSS. The CWE mapping (CWE-79/CWE-80) and attack example confirm this is an output encoding failure in template rendering.