{"id":"CVE-2023-50732","aliases":["GHSA-p5f8-qf24-24cj"],"url":"https://o3.security/vulnerability/CVE-2023-50732","summary":"Velocity execution without script right through tree macro","details":"### Impact\n\nIt's possible to execute a Velocity script without script right through the document tree.\n\nTo reproduce:\n\n* As a user without script right, create a document, e.g., named Nasty Title\n* Set the document's title to `$request.requestURI`\n* Click \"Save & View\"\n* Reload the page in the browser\n\nThe navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn't have script right.\n\n### Patches\n\nThis has been patched in XWiki 14.10.7 and 15.2RC1.\n\n### Workarounds\n\nA possible workaround is to:\n* modify the page XWiki.DocumentTreeMacros\n* search for the code `#set ($discard = $translatedDocument.setTitle($translatedDocument.title))`\n* modify it into `#set ($discard = $translatedDocument.setcomment(''))`\n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-20625\n* https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3\n\n### For more information\n\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)","published":"2023-12-21T19:42:01.215Z","modified":"2026-08-12T03:51:35.886715751Z","cvss":{"score":8.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"},"epss":{"score":0.00486,"percentile":0.40015,"asOf":"2026-08-21"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-index-tree-macro","fixedVersion":"14.10.7"},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-index-tree-macro","fixedVersion":"15.2-rc-1"}],"fix":{"url":"https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3","label":"xwiki/xwiki-platform@41d7dca"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20625"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50732.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p5f8-qf24-24cj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50732"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:35.886715751Z"}}