Vulnerability record · CVE-2022-36094 · published 8 September 2022
CVE-2022-36094: XWiki Platform stored XSS via attachment history view
Xwiki · Xwiki
XWiki Platform versions from 1.0 up to 13.10.6 and 14.3RC1 allow stored JavaScript to be executed when a user views the history of an attachment whose filename contains JavaScript. The flaw is a cross-site scripting issue in the viewattachrev.vm entry point, and it matters because the script runs in the context of any user viewing that history page.
Description
XWiki Platform Web Parent POM contains Web resources for the XWiki platform, a generic wiki platform. Starting with version 1.0 and prior to versions 13.10.6 and 14.30-rc-1, it's possible to store JavaScript which will be executed by anyone viewing the history of an attachment containing javascript in its name. This issue has been patched in XWiki 13.10.6 and 14.3RC1. As a workaround, it is possible to replace `viewattachrev.vm`, the entry point for this attack, by a patched version from the patch without updating XWiki.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Automated analysis
high priorityCritical CVSS and very high EPSS with a public exploit reference, but exploitation requires a low-privileged attacker and victim interaction, and no KEV listing is present.
What it is
XWiki Platform versions from 1.0 up to 13.10.6 and 14.3RC1 allow stored JavaScript to be executed when a user views the history of an attachment whose filename contains JavaScript. The flaw is a cross-site scripting issue in the viewattachrev.vm entry point, and it matters because the script runs in the context of any user viewing that history page.
Impact
An attacker can execute arbitrary JavaScript in the victim's browser session, potentially stealing session cookies, performing actions as the victim, or exfiltrating data accessible to that user. The CVSS vector indicates high confidentiality, integrity, and availability impact within a changed scope.
Attack surface
The attack is network-reachable and requires the attacker to have low privileges to store the malicious attachment name, while the victim must view the attachment history (user interaction required). No authentication is needed for the victim beyond being able to access the history page.
Exploitation
No CISA KEV listing is present, but EPSS is 0.64098 (99.188th percentile) and a vendor Jira reference is tagged as Exploit, indicating public exploit information exists.
What to do
- Upgrade XWiki to 13.10.6 or 14.3RC1 or later.
- If immediate upgrade is not possible, replace viewattachrev.vm with the patched version from the vendor patch.
- Restrict attachment upload and history-viewing permissions to trusted users until patched.
- Review attachment names for embedded JavaScript and remove or rename suspicious attachments.
Detection
- Search web server and application logs for requests to viewattachrev.vm with attachment names containing script-like patterns.
- Monitor for attachment uploads or renames where the filename contains HTML or JavaScript syntax.
- Inspect XWiki audit logs for unexpected attachment history views by low-privileged accounts.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/xwiki/xwiki-platform/commit/047ce9fa4a7c13f3883438aaf54fc50f287a7e8e | PatchThird Party Advisory |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mxf2-4r22-5hq9 | Third Party Advisory |
| https://jira.xwiki.org/browse/XWIKI-19612 | ExploitVendor Advisory |
| https://github.com/xwiki/xwiki-platform/commit/047ce9fa4a7c13f3883438aaf54fc50f287a7e8e | PatchThird Party Advisory |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mxf2-4r22-5hq9 | Third Party Advisory |
| https://jira.xwiki.org/browse/XWIKI-19612 | ExploitVendor Advisory |
Track CVE-2022-36094 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-36094), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.