# CVE-2023-40176: SXSS in the user profile via the timezone displayer

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 80.0%, higher than 99% of CVEs (2026-12-01)
- Published: 2023-08-21T19:59:12.000Z
- Modified: 2026-06-17T06:16:33.900Z
- Also known as: GHSA-h8cm-3v5f-rgp6
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 4.1-milestone-2, < 14.10.5
- org.xwiki.platform:xwiki-platform-web-templates (Maven): from 4.1-milestone-2 before 14.10.5
- xwiki xwiki: from 4.1.1 before 14.10.5; 4.1; 15.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h8cm-3v5f-rgp6> (patch, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/d11ca5d781f8a42a85bc98eb82306c1431e764d4> (patch, web)
- <https://jira.xwiki.org/browse/XWIKI-7847> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40176> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2023-40176](https://www.cve.org/CVERecord?id=CVE-2023-40176), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-h8cm-3v5f-rgp6](https://github.com/advisories/GHSA-h8cm-3v5f-rgp6), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-40176](https://nvd.nist.gov/vuln/detail/CVE-2023-40176), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40176 · Whole record: https://cve.day/CVE-2023-40176.json · Rebuilt by cve.day 2026-11-25T22:58:27.320Z
