Improper Neutralization of Invalid Characters in Data Attribute Names in org.xwiki.commons:xwiki-commons-xml
CVE-2023-31126
Key Information:
- Vendor
Xwiki
- Status
- Vendor
- CVE Published:
- 9 May 2023
Badges
Key facts
CVE-2023-31126 is a critical severity (CVSS 9.6) vulnerability in xwiki-commons. It is known to be exploited in the wild. 1 public proof-of-concept exploit is available. Its EPSS score is 1.3%, the estimated probability of exploitation in the next 30 days.
How risky is it?
- Partly: Works over the network, but a user must act
- Yes: Public exploit code (1 proof-of-concept)
- Yes: Attacked in the wild
- No: Not on CISA's exploited list
Our verdict
Patch now
Attackers are using it. Patch or mitigate today.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory โ2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Xwiki-commons. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
It has been exploited in the wild, so check logs on exposed Xwiki-commons systems for unusual requests or new processes from before you patched. The 1 public proof-of-concept show what an attack looks like.
4Why it's rated "Patch now"
- It is being exploited in the wild.
- Exploit code is public, so attacks are easy to copy.
- Its CVSS severity is critical (9.6).
What is CVE-2023-31126?
A vulnerability exists in the xwiki-commons-xml library, which is part of the XWiki platform. The HTML sanitizer, introduced in version 14.6-rc-1, is susceptible to cross-site scripting due to the handling of invalid data attributes. Attackers can exploit this weakness by injecting arbitrary HTML code. Although restricted cleaning is effective in HTMLCleaner, allowing only permitted characters for data attributes has been implemented in versions 14.10.4 and 15.0 RC1. Users are urged to upgrade to these versions as no other workarounds are available.
Affected Version(s)
xwiki-commons >= 14.6-rc-1, < 14.10.4
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.