CVEfocus › CVE database › CVE-2023-37908

CVE-2023-37908org.xwiki.rendering:xwiki-rendering-xml Improper Neutralization of Invalid Characters in…

CVSS 9.1 CriticalEPSS 2.7% (higher than 87% of CVEs)Published 2023-10-25Updated 2024-09-17Assigner: GitHub_M

XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. The cleaning of attributes during XHTML rendering, introduced in version 14.6-rc-1, allowed the injection of arbitrary HTML code and thus cross-site scripting via invalid attribute names. This can be exploited, e.g., via the link syntax in any content that supports XWiki syntax like comments in XWiki. When a user moves the mouse over a malicious link, the malicious JavaScript code is executed in the context of the user session. When this user is a privileged user who has programming rights, this allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. While this attribute was correctly recognized as not allowed, the attribute was still printed with a prefix `data-xwiki-translated-attribute-` without further cleaning or validation. This problem has been patched in XWiki 14.10.4 and 15.0 RC1 by removing characters not allowed in data attributes and then validating the cleaned attribute again. There are no known workarounds apart from upgrading to a version including the fix.

CWE-83

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Maven has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Maven libraryorg.xwiki.platform:xwiki-core-rendering-apiFix pendingGHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.platform:xwiki-platform-annotation-coreFixed14.6-rc-1GHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5Fixed14.6-rc-1GHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtmlFixed14.6-rc-1GHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.rendering:xwiki-rendering-syntax-htmlFixed14.6-rc-1GHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.rendering:xwiki-rendering-syntax-html5Fixed14.6-rc-1GHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.rendering:xwiki-rendering-syntax-xhtmlFixed14.6-rc-1GHSA-6gf5-c898-7rxp
Maven libraryorg.xwiki.rendering:xwiki-rendering-xmlFixed14.10.4GHSA-663w-2xp3-5739

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.