# CVE-2023-31126: Improper Neutralization of Invalid Characters in Data Attribute Names in org.xwiki.commons:xwiki-commons-xml

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-05-09T12:53:59.691Z
- Modified: 2026-09-10T03:49:53.812Z
- Also known as: GHSA-pv7v-ph6g-3gxv
- Weaknesses: CWE-79, CWE-86
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-commons: >= 14.6-rc-1, < 14.10.4
- org.xwiki.commons:xwiki-commons-xml (Maven): from 14.6-rc-1 before 14.10.4
- xwiki xwiki: from 14.6 before 14.10.4

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://jira.xwiki.org/browse/XCOMMONS-2606> (exploit, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-pv7v-ph6g-3gxv> (vendor-advisory, web)
- <https://github.com/xwiki/xwiki-commons/commit/0b8e9c45b7e7457043938f35265b2aa5adc76a68> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31126> (advisory)
- <https://github.com/xwiki/xwiki-commons> (package)

## Sources

- CVE List: [CVE-2023-31126](https://www.cve.org/CVERecord?id=CVE-2023-31126), CVE Terms of Use, modified 2025-01-28
- GitHub Advisory Database: [GHSA-pv7v-ph6g-3gxv](https://github.com/advisories/GHSA-pv7v-ph6g-3gxv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-31126](https://nvd.nist.gov/vuln/detail/CVE-2023-31126), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31126 · Whole record: https://cve.day/CVE-2023-31126.json · Rebuilt by cve.day 2026-11-25T22:58:24.000Z
