{"id":"GHSA-mxf2-4r22-5hq9","summary":"XWiki Platform Web Parent POM vulnerable to XSS in the attachment history","details":"### Impact\n\nIt's possible to store a JavaScript which will be executed by anyone viewing the history of an attachment containing javascript in its name.\n\nFor example, attachment a file with name `\u003e\u003cimg src=1 onerror=alert(1)\u003e.jpg` will execute the alert.\n\n### Patches\n\nThis issue has been patched in XWiki 13.10.6 and 14.3RC1.\n\n### Workarounds\n\nIt is possible to replace viewattachrev.vm, the entry point for this attack, by a [patch](https://github.com/xwiki/xwiki-platform/commit/047ce9fa4a7c13f3883438aaf54fc50f287a7e8e)ed version from the patch without updating XWiki.\n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-19612\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)\n","aliases":["CVE-2022-36094"],"modified":"2023-11-01T04:59:31.459965Z","published":"2022-09-16T17:05:12Z","database_specific":{"nvd_published_at":"2022-09-08T20:15:00Z","cwe_ids":["CWE-79","CWE-80"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-09-16T17:05:12Z"},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mxf2-4r22-5hq9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36094"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/047ce9fa4a7c13f3883438aaf54fc50f287a7e8e"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-19612"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-web","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0"},{"fixed":"13.10.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-mxf2-4r22-5hq9/GHSA-mxf2-4r22-5hq9.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-web","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.0"},{"fixed":"14.3-rc-1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-mxf2-4r22-5hq9/GHSA-mxf2-4r22-5hq9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L"}]}