CVE-2023-35153 XWiki Platform vulnerable to stored cross-site scripting in ClassEditSheet page via name parameters

Critical 9.1 Published Updated

Attackers with edit rights can inject malicious scripts via page titles, leading to code execution when other users view the ClassEditSheet page.

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-35153?

CVE-2023-35153 is a critical cross-site scripting vulnerability in Xwiki Xwiki, published on 23 Jun 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 Platform is a generic wiki platform. Starting in version 5.4.4 and prior to versions 14.4.8, 14.10.4, and 15.0, a stored cross-site scripting vulnerability can be exploited by users with edit rights by adding a `AppWithinMinutes.FormFieldCategoryClass` class on a page and setting the payload on the page title. Then, any user visiting `/xwiki/bin/view/AppWithinMinutes/ClassEditSheet` executes the payload. The issue has been patched in XWiki 14.4.8, 14.10.4, and 15.0. As a workaround, update `AppWithinMinutes.ClassEditSheet` with a patch.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2023-35153?

6 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-appwithinminutes-ui. It affects 1 product.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 14.514.10.4
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 14.514.10.4
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 15.0-rc-115.0
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 15.0-rc-115.0
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 5.4.414.4.8
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 5.4.414.4.8

Products include Xwiki Xwiki.

How do I fix CVE-2023-35153?

Upgrade org.xwiki.platform:xwiki-platform-appwithinminutes-ui to a fixed version for your release line: 14.10.4, 15.0 or 14.4.8.

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-35153 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-35153 exists.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-4wc6-hqv9-qc97.

Is CVE-2023-35153 in your software?

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

Check your SBOMs for free