CVE-2023-36471
mediumpriority · track · 32EPSS 0.010 · 64 %ileexploit · PoCEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 5.1–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (12)
Products and version ranges known to be affected.
- Maven org.xwiki.commons:xwiki-commons-xml14.6-rc-1 → 14.10.6osvUSpkg:maven/org.xwiki.commons/xwiki-commons-xml
- Maven org.xwiki.commons:xwiki-commons-xml15.0-rc-1 → 15.2-rc-1osvUSpkg:maven/org.xwiki.commons/xwiki-commons-xml
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-6pqf-c99p-758vorg.xwiki.commons:xwiki-commons-xml's HTML sanitizer allows form elements in restricted2023-06-30ghsa · osvUS
### Impact 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. ### Patches 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. ### Workarounds 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. ### References * https://jira.xwiki.org/browse/XCOMMONS-2634 * https://github.com/xwiki/xwiki-commons/commit/99484d48e899a68a1b6e33d457825b776c6fe8c3
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-36471/cnnvd
- https://github.com/xwiki/xwiki-commons/commit/99484d48e899a68a1b6e33d457825b776c6fe8c3cnnvd
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-6pqf-c99p-758vcnnvd
- https://jira.xwiki.org/browse/XCOMMONS-2634cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2023-36471cnnvd
- https://github.com/xwiki/xwiki-commons/commit/99484d48e899a68a1b6e33d457825b776c6fe8c3enisa_euvd
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-6pqf-c99p-758venisa_euvd
- https://jira.xwiki.org/browse/XCOMMONS-2634enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan