CVE-2023-32070: Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.88252%
CWE
Published
5/11/2023
Updated
11/7/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.xwiki.rendering:xwiki-rendering-syntax-xhtml | maven | < 14.6-rc-1 | 14.6-rc-1 |
| org.xwiki.platform:xwiki-core-rendering-api | maven | <= 3.0-milestone-2 | |
| org.xwiki.rendering:xwiki-rendering-syntax-html | maven | < 14.6-rc-1 | 14.6-rc-1 |
| org.xwiki.rendering:xwiki-rendering-syntax-html5 | maven | < 14.6-rc-1 | 14.6-rc-1 |
| org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml | maven | < 14.6-rc-1 | 14.6-rc-1 |
| org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5 | maven | < 14.6-rc-1 | 14.6-rc-1 |
| org.xwiki.platform:xwiki-platform-annotation-core | maven | < 14.6-rc-1 | 14.6-rc-1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing HTML attribute sanitization in XWiki's rendering components. The commit introduces HTMLElementSanitizer across multiple renderers (XHTML, HTML5, AnnotatedHTML) and modifies XHTMLWikiPrinter to validate attributes. The affected functions are the rendering entry points that process HTML elements/attributes. The patch explicitly adds sanitization to these components, indicating they were previously vulnerable. Test file changes show attributes being prefixed with 'data-xwiki-translated-attribute-' when disallowed, proving the lack of prior validation.