# CVE-2022-36097: XWiki Platform Attachment UI vulnerable to cross-site scripting in the move attachment form

- Severity: High 8.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 59.1%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2022-09-08T20:35:11.000Z
- Modified: 2026-06-17T04:52:54.823Z
- Also known as: GHSA-9r9j-57rf-f6vj
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 14.0-rc-1, < 14.4-rc-1
- org.xwiki.platform:xwiki-platform-attachment-ui (Maven): from 14.0-rc-1 before 14.4-rc-1
- xwiki xwiki: from 14.0 before 14.3

## Every score

- GitHub_M: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <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://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36097> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2022-36097](https://www.cve.org/CVERecord?id=CVE-2022-36097), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-9r9j-57rf-f6vj](https://github.com/advisories/GHSA-9r9j-57rf-f6vj), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-36097](https://nvd.nist.gov/vuln/detail/CVE-2022-36097), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36097 · Whole record: https://cve.day/CVE-2022-36097.json · Rebuilt by cve.day 2026-11-25T22:58:14.781Z
