CVE-2023-29207 Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro

High 8.9 Published Updated

Attackers can inject JavaScript via Livetable or Documents macros to execute arbitrary code, escalate privileges, or modify content in XWiki.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-29207?

CVE-2023-29207 is a high-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 15 Apr 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

XWiki Commons are technical libraries common to several other top level XWiki projects. The Livetable Macro wasn't properly sanitizing column names, thus allowing the insertion of raw HTML code including JavaScript. This vulnerability was also exploitable via the Documents Macro that is included since XWiki 3.5M1 and doesn't require script rights, this can be demonstrated with the syntax `{{documents id="example" count="5" actions="false" columns="doc.title, before<script>alert(1)</script>after"/}}`. Therefore, this can also be exploited by users without script right and in comments. With the interaction of a user with more rights, this could be used to execute arbitrary actions in the wiki, including privilege escalation, remote code execution, information disclosure, modifying or deleting content. This has been patched in XWiki 14.9, 14.4.6, and 13.10.10.

Weakness: CWE-79

Which versions are affected by CVE-2023-29207?

36 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-flamingo, org.xwiki.platform:xwiki-platform-flamingo-skin and org.xwiki.platform:xwiki-platform-flamingo-skin-resources. It affects 1 product.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-flamingo MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-flamingo MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-flamingo MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-flamingo MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-flamingo MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-flamingo MavenFrom 14.514.9
30 more packages
org.xwiki.platform:xwiki-platform-flamingo-skin MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-flamingo-skin MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-flamingo-skin MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-flamingo-skin MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-flamingo-skin MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-flamingo-skin MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-flamingo-skin-resources MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-flamingo-skin-resources MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-flamingo-skin-resources MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-flamingo-skin-resources MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-flamingo-skin-resources MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-flamingo-skin-resources MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-web MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-web MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-web MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-web MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-web MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-web MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-web-templates MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-web-templates MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-platform-web-templates MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-web-templates MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-platform-web-templates MavenFrom 14.514.9
org.xwiki.platform:xwiki-platform-web-templates MavenFrom 14.514.9
org.xwiki.platform:xwiki-web-standard MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-web-standard MavenFrom 1.9-milestone-213.10.10
org.xwiki.platform:xwiki-web-standard MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-web-standard MavenFrom 14.0-rc-114.4.6
org.xwiki.platform:xwiki-web-standard MavenFrom 14.514.9
org.xwiki.platform:xwiki-web-standard MavenFrom 14.514.9

Products include Xwiki Xwiki.

How do I fix CVE-2023-29207?

Upgrade org.xwiki.platform:xwiki-platform-flamingo to a fixed version for your release line: 13.10.10, 14.4.6 or 14.9.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-29207 being exploited?

There is no known exploitation of CVE-2023-29207 in the wild and no public exploit code.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-6vgh-9r3c-2cxp.

Is CVE-2023-29207 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free