{"cve":"CVE-2023-40176","nvd":{"published":"2023-08-23T20:15:08.927","modified":"2026-06-17T06:16:33.900","status":"Modified","description":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any registered user can exploit a stored XSS through their user profile by setting the payload as the value of the time zone user preference. Even though the time zone is selected from a drop down (no free text value) it can still be set from JavaScript (using the browser developer tools) or by calling the save URL on the user profile with the right query string. Once the time zone is set it is displayed without escaping which means the payload gets executed for any user that visits the malicious user profile, allowing the attacker to steal information and even gain more access rights (escalation to programming rights). This issue is present since version 4.1M2 when the time zone user preference was introduced. The issue has been fixed in XWiki 14.10.5 and 15.1RC1.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/xwiki/xwiki-platform/commit/d11ca5d781f8a42a85bc98eb82306c1431e764d4","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h8cm-3v5f-rgp6","https://jira.xwiki.org/browse/XWIKI-7847","https://github.com/xwiki/xwiki-platform/commit/d11ca5d781f8a42a85bc98eb82306c1431e764d4","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h8cm-3v5f-rgp6"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:39:14.809778102+00:00"},"epss":{"cve":"CVE-2023-40176","score":0.79989,"percentile":0.99613,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h8cm-3v5f-rgp6","url":"https://osv.dev/vulnerability/GHSA-h8cm-3v5f-rgp6","summary":"XWiki Platform Stored Cross-site Scripting in the user profile via the timezone displayer","modified":"2023-11-08T04:13:19.601678Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-web-templates","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-web-templates","ranges":[">=4.1-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."]}