← Vulnerability feed

Vulnerability record · CVE-2023-40176 · published 23 August 2023

CVE-2023-40176: XWiki Platform stored XSS via time zone user preference

Xwiki · Xwiki

XWiki Platform fails to escape the time zone user preference when rendering a user profile, allowing a stored cross-site scripting payload to be saved through that field. Any registered user can set the value via JavaScript or a crafted save URL, and the payload executes for anyone who views the malicious profile. The flaw has existed since version 4.1M2 and is fixed in 14.10.5 and 15.1RC1.

5.4 CVSS 3.1 Medium EPSS 80% · top 0.4% CWE-79 · Cross-site scripting
5.4CVSS 3.1 base score
80%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityThe flaw is a stored XSS reachable by any registered user with a very high EPSS score, though it is not in KEV and requires victim interaction.

What it is

XWiki Platform fails to escape the time zone user preference when rendering a user profile, allowing a stored cross-site scripting payload to be saved through that field. Any registered user can set the value via JavaScript or a crafted save URL, and the payload executes for anyone who views the malicious profile. The flaw has existed since version 4.1M2 and is fixed in 14.10.5 and 15.1RC1.

Impact

An attacker can execute arbitrary script in the browser of any user viewing the profile, stealing session and other data and potentially escalating to programming rights. This can lead to full compromise of the affected XWiki instance.

Attack surface

Reached over the network through the user profile save endpoint; the attacker needs a registered account (low privileges) and the victim must visit the malicious profile (user interaction required). No free-text input is needed because the time zone value can be set directly via JavaScript or a crafted query string.

Exploitation

Not listed in CISA KEV and no public exploit references are tagged, but EPSS is very high (0.79989, 99.6th percentile), indicating elevated likelihood of exploitation activity.

What to do

  • Upgrade XWiki to 14.10.5 or 15.1RC1 (or later) to apply the official fix.
  • If immediate upgrade is not possible, restrict or monitor profile save requests that set the time zone preference to unexpected values.
  • Apply output encoding/escaping to the time zone preference rendering as a temporary compensating control.
  • Limit the number of accounts with profile creation or editing rights until patched.

Detection

  • Search XWiki logs and profile save requests for time zone values containing script tags or HTML/JavaScript characters.
  • Monitor for anomalous profile save requests with query strings setting the time zone preference outside the expected dropdown values.
  • Review user profiles for stored payloads in the time zone preference field.
  • Alert on outbound requests or session anomalies originating from profile pages that could indicate XSS execution.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-40176 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-24893XWiki SolrSearch unauthenticated remote code executionXWiki Platform's SolrSearch endpoint evaluates user-supplied search text as Groovy code, allowing arbitrary remote code execution. The flaw is reacha…KEVEPSS 100%analysed9.9CVE-2023-27479Xwiki injection vulnerabilityXWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions any user with view righ…EPSS 1.1%9.8CVE-2024-31996Xwiki code injection vulnerabilityXWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, the HTML escaping of esca…EPSS 2.1%9.8CVE-2024-31982Xwiki code injection vulnerabilityXWiki Platform is a generic wiki platform. Starting in version 2.4-milestone-1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1, XWiki's databas…EPSS 35%9.8CVE-2024-21650XWiki user registration RCE via name fieldsXWiki Platform is vulnerable to remote code execution through its guest user registration feature. An attacker can inject malicious payloads into the…EPSS 93%analysed9.8CVE-2023-46731XWiki Platform unescaped URL parameter allows remote code executionXWiki Platform fails to properly escape the section URL parameter used when displaying administration sections, allowing injection of code such as Gr…EPSS 89%analysed9.8CVE-2023-26477XWiki Platform unauthenticated code injection via newThemeName parameterXWiki Platform versions from 6.3-rc-1 and 6.2.4 onward allow injection of arbitrary wiki syntax, including Groovy, Python and Velocity script macros,…EPSS 75%analysed9.8CVE-2022-29161Xwiki broken cryptographic algorithm vulnerabilityXWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. The XWiki Crypto API will generate X509 cert…EPSS 0.41%

Source: NIST National Vulnerability Database (record CVE-2023-40176), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.