CVE-2023-40176
CVE-2023-40176 is a critical-severity vulnerability in Xwiki with a CVSS 3.x base score of 9.0. Its EPSS exploit-prediction score of 79% places it in the 100th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Critical (CVSS 3.x base score 9.0)
- EPSS exploit prediction: 79% (100th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-79
- Affected product: Xwiki
- Published:
- Last 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.
Frequently asked questions
- What is CVE-2023-40176?
- 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.
- How severe is CVE-2023-40176?
- CVE-2023-40176 has a CVSS 3.x base score of 9.0, rated critical severity. It is exploitable over network with low attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2023-40176 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 79% (100th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-40176?
- CVE-2023-40176 primarily affects Xwiki. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2023-40176?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2023-40176 published?
- CVE-2023-40176 was published on 2023-08-23 and last updated on 2026-06-17.
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
Affected products (4)
- cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
- cpe:2.3:a:xwiki:xwiki:4.1:milestone2:*:*:*:*:*:*
- cpe:2.3:a:xwiki:xwiki:15.0:-:*:*:*:*:*:*
- cpe:2.3:a:xwiki:xwiki:15.0:rc1:*:*:*:*:*:*
More vulnerabilities in Xwiki
- CVE-2024-31996 — Critical (CVSS 10.0): XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.19, 15.5.4, and…
- CVE-2024-31982 — Critical (CVSS 10.0): XWiki Platform is a generic wiki platform. Starting in version 2.4-milestone-1 and prior to versions 4.10.20, 15.5.4,…
- CVE-2024-21650 — Critical (CVSS 10.0): XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki is…
- CVE-2023-46731 — Critical (CVSS 10.0): XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki doesn't…
- CVE-2023-26477 — Critical (CVSS 10.0): XWiki Platform is a generic wiki platform. Starting in versions 6.3-rc-1 and 6.2.4, it's possible to inject arbitrary…
- CVE-2025-53836 — Critical (CVSS 9.9): XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc)…
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →