Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.commons/xwiki-commons-xml
  4. ›
  5. CVE-2023-36471

CVE-2023-36471: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

June 30, 2023 (updated July 10, 2023)

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.

References

  • github.com/advisories/GHSA-6pqf-c99p-758v
  • github.com/xwiki/xwiki-commons/commit/99484d48e899a68a1b6e33d457825b776c6fe8c3
  • github.com/xwiki/xwiki-commons/security/advisories/GHSA-6pqf-c99p-758v
  • jira.xwiki.org/browse/XCOMMONS-2634
  • nvd.nist.gov/vuln/detail/CVE-2023-36471

Code Behaviors & Features

Detect and mitigate CVE-2023-36471 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 14.6-rc-1 before 14.10.6, all versions starting from 15.0-rc-1 before 15.2-rc-1

Fixed versions

  • 14.10.6
  • 15.2-rc-1

Solution

Upgrade to versions 14.10.6, 15.2-rc-1 or above. *Note*: 15.2-rc-1 may be an unstable version. Use caution.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.xwiki.commons/xwiki-commons-xml/CVE-2023-36471.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.