CVE-2023-36471

Description

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(&quot;Hello from Groovy!&quot;)" />{{/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.

Severity
CRITICAL
CVSS v3
9.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
1.029%
chance of exploitation in the next 30 days
higher than 64.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impacttotal
Scored2024-11-26

Timeline

  1. 2023-06-29Published by the CNA19:44 UTC
  2. 2023-06-30GitHub advisory published (GHSA-6pqf-c99p-758v)1 day after publication
  3. 2024-11-26CISA SSVC decision recorded516 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-6pqf-c99p-758v, affected packages:

PackageVulnerable versionsFixed in
Maven org.xwiki.commons:xwiki-commons-xmlfrom 14.6-rc-1 before 14.10.614.10.6
Maven org.xwiki.commons:xwiki-commons-xmlfrom 15.0-rc-1 before 15.2-rc-115.2-rc-1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
xwiki commonsfrom 14.6 before 14.10.6fixed in 14.10.615.0no fix listed15.1no fix listed14.10.6not listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources