HTML sanitizer allows form elements in restricted in org.xwiki.commons:xwiki-commons-xml
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
Xwiki commons is the common modules used by other XWiki top level projects. The HTML sanitizer that is included in XWiki since version 14.6RC1 allowed form and input HTML tags. In the context of XWiki, this allows an attacker without script right to either create forms that can be used for phishing attacks or also in the context of a sheet, the attacker could add an input like `{{html}}<input type="hidden" name="content" value="{{groovy}}println("Hello from Groovy!")" />{{/html}}` that would allow remote code execution when it is submitted by an admin (the sheet is rendered as part of the edit form). The attacker would need to ensure that the edit form looks plausible, though, which can be non-trivial as without script right the attacker cannot display the regular content of the document. This has been patched in XWiki 14.10.6 and 15.2RC1 by removing the central form-related tags from the list of allowed tags. Users are advised to upgrade. As a workaround an admin can manually disallow the tags by adding `form, input, select, textarea, button` to the configuration option `xml.htmlElementSanitizer.forbidTags` in the `xwiki.properties` configuration file.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-commons | 14.6-rc-1 to before 14.10.6; 15.0-rc-1 to before 15.2-rc-1 | 14.10.6, 15.2-rc-1 | Patch available | CNA |
| — | org.xwiki.commons:xwiki-commons-xml (Maven) | 14.6-rc-1 to before 14.10.6 | 14.10.6 | Patch available | GHSA-6pqf-c99p-758v |
| — | org.xwiki.commons:xwiki-commons-xml (Maven) | 15.0-rc-1 to before 15.2-rc-1 | 15.2-rc-1 | Patch available | GHSA-6pqf-c99p-758v |
- xwiki-commons VendorXWiki Affected 14.6-rc-1 to before 14.10.6; 15.0-rc-1 to before 15.2-rc-1 Fixed in 14.10.6, 15.2-rc-1 Patch available CNA
- org.xwiki.commons:xwiki-commons-xml (Maven) Vendor— Affected 14.6-rc-1 to before 14.10.6 Fixed in 14.10.6 Patch available GHSA-6pqf-c99p-758v
- org.xwiki.commons:xwiki-commons-xml (Maven) Vendor— Affected 15.0-rc-1 to before 15.2-rc-1 Fixed in 15.2-rc-1 Patch available GHSA-6pqf-c99p-758v
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:* | 14.6 to before 14.10.6 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:commons:15.0:-:*:*:*:*:*:* | 15.0 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:commons:15.0:rc1:*:*:*:*:*:* | 15.0 rc1 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:commons:15.1:-:*:*:*:*:*:* | 15.1 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:commons:15.1:rc1:*:*:*:*:*:* | 15.1 rc1 | Vulnerable | XWiki |
- cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:* Versions 14.6 to before 14.10.6 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:commons:15.0:-:*:*:*:*:*:* Versions 15.0 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:commons:15.0:rc1:*:*:*:*:*:* Versions 15.0 rc1 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:commons:15.1:-:*:*:*:*:*:* Versions 15.1 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:commons:15.1:rc1:*:*:*:*:*:* Versions 15.1 rc1 Vulnerable ·XWiki
Remediation
- Fix · CNA xwiki-commons (xwiki) Fixed in 14.10.6, 15.2-rc-1
- Fix · GHSA-6pqf-c99p-758v org.xwiki.commons:xwiki-commons-xml (Maven) Fixed in 14.10.6 Advisory →
- Fix · GHSA-6pqf-c99p-758v org.xwiki.commons:xwiki-commons-xml (Maven) Fixed in 15.2-rc-1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-36471
- 2026-10-03 Alias added: GHSA-6pqf-c99p-758v
References
Exploit 2
More XWiki Commons vulnerabilities
- TI-2022-08708 Arbitrary file access through XML parsing in org.xwiki.commons:xwiki-commons-xml CVSS 3.1MEDIUM 4.9
- TI-2023-11288 XWiki Commons may allow privilege escalation to programming rights via user's first name CVSS 3.1CRITICAL 10.0
- TI-2023-13896 Cross-site Scripting in org.xwiki.commons:xwiki-commons-xml CVSS 3.1CRITICAL 9.1
Sources
- CVE-2023-36471 · CVE Program
- CVE-2023-36471 · NVD
- FIRST EPSS
- GHSA-6pqf-c99p-758v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences