{"id":"CVE-2023-26056","aliases":["CVE-2023-26056","GHSA-859x-p6jp-rc2w"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Platform allows macro execution as any user without programming rights through the context macro","summary":"XWiki Platform is a generic wiki platform. Starting in version 3.0-milestone-1, it's possible to execute a script with the right of another user, provided the target user does not have programming right. The problem has been patched in XWiki 14.8-rc-1, 14.4.5, and 13.10.10. There are no known workarounds for this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform. Starting in version 3.0-milestone-1, it's possible to execute a script with the right of another user, provided the target user does not have programming right. The problem has been patched in XWiki 14.8-rc-1, 14.4.5, and 13.10.10. There are no known workarounds for this issue.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIt's possible to execute a script with the right of another user (provided the target user does not have programming right).\n\nFor example, the following:\n\n```\n{{context document=\"xwiki:XWiki.userwithscriptright\" transformationContext=\"document\"}}{{velocity}}Hello from Velocity!{{/velocity}}{{/context}}\n```\n\nwritten by a user not having script right (for example in the user's profile) should produce an error (the user is not allowed to write scripts). However, because of the vulnerability, if the author of the document \"xwiki:XWiki.userwithscriptright\" has script right (but not programming right) the script will be executed with as if it was written by the target user.\n\n### Patches\n\nThe problem has been patched in XWiki 14.8RC1, 14.4.5 and 13.10.10.\n\n### Workarounds\n\nThere's no workaround for this issue.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-19856\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [JIRA](https://jira.xwiki.org)\n* Email us at [security ML](mailto:security@xwiki.org)","format":"markdown","source":"ghsa"}],"published":"2023-03-02T18:44:00.363Z","modified":"2026-09-10T03:49:52.912Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":">= 3.0-milestone-1, < 13.10.10","status":"affected"},{"version":">= 14.0-rc-1, < 14.4.5","status":"affected"},{"version":">= 14.5, < 14.8-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0-milestone-1","status":"affected","fixed":"13.10.10"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-macro-context","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-macro-context","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.0-rc-1","status":"affected","fixed":"14.4.5"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-macro-context","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-macro-context","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.5","status":"affected","fixed":"14.8-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-macro-context","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-macro-context","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.1","fixed":"13.10.10"},{"status":"affected","introduced":"14.0","fixed":"14.4.5"},{"status":"affected","introduced":"14.5","fixed":"14.8"},{"status":"affected","version":"3.0"},{"status":"affected","version":"3.0"},{"status":"affected","version":"3.0"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-859x-p6jp-rc2w","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/4b75f212c2dd2dfc5fb5726c7830c6dbc9a425c6","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/bd34ad6710ed72304304a3d5fec38b7cc050ef3b","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/dd3f4735b41971b3afc3f3aedf6664b4e8be4894","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-19856","tags":["exploit","issue-tracking","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26056","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-05T20:39:49.723Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-26056","url":"https://www.cve.org/CVERecord?id=CVE-2023-26056","licence":"CVE Terms of Use","modified":"2025-03-05T20:40:21.509Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-859x-p6jp-rc2w","url":"https://github.com/advisories/GHSA-859x-p6jp-rc2w","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:52.912Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-26056","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26056","licence":"Public domain","modified":"2026-06-17T05:42:33.777Z"}],"updatedAt":"2026-11-25T22:58:22.248Z","epss":{"score":0.00555,"percentile":0.47685,"date":"2026-12-01T12:00:22.000Z"}}