Critical severity · published May 9, 2023
CVE-2023-31126
Improper Neutralization of Invalid Characters in Data Attribute Names in org.xwiki.commons:xwiki-commons-xml
9.6
CVSS
0.8%
EPSS
No
On KEV
Description
`org.xwiki.commons:xwiki-commons-xml` is an XML library used by the open-source wiki platform XWiki. The HTML sanitizer, introduced in version 14.6-rc-1, allows the injection of arbitrary HTML code and thus cross-site scripting via invalid data attributes. This vulnerability does not affect restricted cleaning in HTMLCleaner as there attributes are cleaned and thus characters like `/` and `>` are removed in all attribute names. This problem has been patched in XWiki 14.10.4 and 15.0 RC1 by making sure that data attributes only contain allowed characters. There are no known workarounds apart from upgrading to a version including the fix.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 57% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
XW
xwiki-commons · xwiki
>= 14.6-rc-1, < 14.10.4 · source: vendor
XW
Xwiki · Xwiki
14.6 before 14.10.4 · source: NVD
Affected product
XW
xwiki-commons
xwiki
More from xwiki-commons
9.9
CVE-2023-26055
XWiki Commons may allow privilege escalation to programming rights via user's first name
9.8
CVE-2024-31996
XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution
9.3
CVE-2026-23734
XWiki Platform: Path traversal via resources parameter in ssx and jsx endpoints when using leading slash
9.0
CVE-2023-29528
Cross-site Scripting in org.xwiki.commons:xwiki-commons-xml
9.0
CVE-2023-29201
org.xwiki.commons:xwiki-commons-xml Cross-site Scripting vulnerability