{"cve":"CVE-2023-40177","nvd":{"published":"2023-08-23T21:15:08.670","modified":"2026-06-17T06:16:34.270","status":"Modified","description":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any registered user can use the content field of their user profile page to execute arbitrary scripts with programming rights, thus effectively performing rights escalation. This issue is present since version 4.3M2 when AppWithinMinutes Application added support for the Content field, allowing any wiki page (including the user profile page) to use its content as an AWM Content field, which has a custom displayer that executes the content with the rights of the ``AppWithinMinutes.Content`` author, rather than the rights of the content author. The vulnerability has been fixed in XWiki 14.10.5 and 15.1RC1. The fix is in the content of the AppWithinMinutes.Content page that defines the custom displayer. By using the ``display`` script service to render the content we make sure that the proper author is used for access rights checks.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-94","CWE-95"],"references":["https://github.com/xwiki/xwiki-platform/commit/dfb1cde173e363ca5c12eb3654869f9719820262","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-5mf8-v43w-mfxp","https://jira.xwiki.org/browse/XWIKI-7369","https://github.com/xwiki/xwiki-platform/commit/dfb1cde173e363ca5c12eb3654869f9719820262","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-5mf8-v43w-mfxp"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:39:14.809778102+00:00"},"epss":{"cve":"CVE-2023-40177","score":0.01058,"percentile":0.64503,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5mf8-v43w-mfxp","url":"https://osv.dev/vulnerability/GHSA-5mf8-v43w-mfxp","summary":"XWiki Platform privilege escalation (PR) from account through AWM content fields","modified":"2026-09-10T03:49:57.385362196Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-appwithinminutes-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui","ranges":[">=4.3-milestone-2 <14.10.5"],"fixed":["14.10.5"]}]}],"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."]}