XSS in Xwiki Commons
CVE-2023-29528
XWiki Commons are technical libraries common to several other top level XWiki projects. The "restricted" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1 and massively improved in version 14.6-rc-1, allowed the injection of arbitrary HTML code and thus cross-site scripting via invalid HTML comments. As a consequence, any code relying on this "restricted" mode for security is vulnerable to JavaScript injection ("cross-site scripting"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.10, HTML comments are now removed in restricted mode and a check has been introduced that ensures that comments don't start with `>`. There are no known workarounds apart from upgrading to a version including the fix.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.013 (68.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
Affected products
- Xwiki Commons — versions 4.2
- Xwiki Xwiki-commons — versions >= 4.2-milestone-1, < 14.10
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (x_refsource_MISC, Vendor Advisory)
- security-advisories@github.com (Exploit, x_refsource_MISC, Vendor Advisory)
Frequently asked questions
- What is CVE-2023-29528?
- CVE-2023-29528 is a critical-severity vulnerability in Xwiki Commons, classified under Cross-site Scripting. CVSS score: 9.0/10. Published 2023-04-20.
- How severe is CVE-2023-29528?
- Critical severity. CVSS v3 base score is 9.0 out of 10.
- Is CVE-2023-29528 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.