CVE-2022-36097
MEDIUM 6.1CVSS 3.1XWiki Platform Attachment UI vulnerable to cross-site scripting in the move attachment form
XWiki Platform Attachment UI provides a macro to easily upload and select attachments for XWiki Platform, a generic wiki platform. Starting with version 14.0-rc-1 and prior to 14.4-rc-1, it's possible to store JavaScript in an attachment name, which will be executed by anyone trying to move the corresponding attachment. This issue has been patched in XWiki 14.4-rc-1. As a workaround, one may copy moveStep1.vm to webapp/xwiki/templates/moveStep1.vm and replace vulnerable code with code from the patch.
- Published
- 8 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79CWE-80
- Also known as
- GHSA-9r9j-57rf-f6vj
- Sources
- NVDJSONOSV GHSA-9r9j-57rf-f6vjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* |
>= 14.0, < 14.3 | 14.3 |
| OSV | Maven | org.xwiki.platform:xwiki-platform-attachment-ui | >= 14.0-rc-1, < 14.4-rc-1 | 14.4-rc-1 |
References
- https://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277 · Patch, Third Party Advisory, WEB
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9r9j-57rf-f6vj · Exploit, Third Party Advisory, WEB
- https://jira.xwiki.org/browse/XWIKI-19667 · Exploit, Vendor Advisory, WEB
- https://raw.githubusercontent.com/xwiki/xwiki-platform/xwiki-platform-14.0-rc-1/xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/main/resources/templates/attachment/moveStep1.vm · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-36097 · ADVISORY
- https://github.com/xwiki/xwiki-platform · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 8 Sep 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 16 Sep 2022)