CVE-2023-35157 XWiki Platform vulnerable to reflected cross-site scripting via delattachment action

High 8.5 Published Updated

Attackers can execute arbitrary scripts in victim browsers via a crafted delete attachment request, potentially leading to session hijacking or data theft.

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

What is CVE-2023-35157?

CVE-2023-35157 is a high-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 23 Jun 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to perform an XSS by forging a request to a delete attachment action with a specific attachment name. Now this XSS can be exploited only if the attacker knows the CSRF token of the user, or if the user ignores the warning about the missing CSRF token. The vulnerability has been patched in XWiki 15.1-rc-1 and XWiki 14.10.6.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2023-35157?

4 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-oldcore. It affects 1 product.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-oldcore MavenFrom 15.0-rc-015.1-rc-1
org.xwiki.platform:xwiki-platform-oldcore MavenFrom 15.0-rc-015.1-rc-1
org.xwiki.platform:xwiki-platform-oldcore MavenFrom 3.2-milestone-314.10.6
org.xwiki.platform:xwiki-platform-oldcore MavenFrom 3.2-milestone-314.10.6

Products include Xwiki Xwiki.

How do I fix CVE-2023-35157?

Upgrade org.xwiki.platform:xwiki-platform-oldcore to a fixed version for your release line: 15.1-rc-1 or 14.10.6.

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

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

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-phwm-87rg-27qq.

Is CVE-2023-35157 in your software?

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

Check your SBOMs for free