{"cve":"CVE-2022-36097","nvd":{"published":"2022-09-08T21:15:08.020","modified":"2026-06-17T04:52:54.823","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79","CWE-80"],"references":["https://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9r9j-57rf-f6vj","https://jira.xwiki.org/browse/XWIKI-19667","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","https://github.com/xwiki/xwiki-platform/commit/fbc4bfbae4f6ce8109addb281de86a03acdb9277"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:35:14.992143698+00:00"},"epss":{"cve":"CVE-2022-36097","score":0.58162,"percentile":0.99092,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9r9j-57rf-f6vj","url":"https://osv.dev/vulnerability/GHSA-9r9j-57rf-f6vj","summary":"XWiki Platform Attachment UI vulnerable to cross-site scripting in the move attachment form","modified":"2023-11-08T04:10:00.862468Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-attachment-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-attachment-ui","ranges":[">=14.0-rc-1 <14.4-rc-1"],"fixed":["14.4-rc-1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}