CVE-2023-32070 Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers

Critical 9.1 Published Updated

Attackers can execute arbitrary scripts in XWiki via malicious attributes, potentially leading to session hijacking or data theft.

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

CVE-2023-32070 is a critical cross-site scripting vulnerability in Xwiki Xwiki, published on 10 May 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. Prior to version 14.6-rc-1, HTML rendering didn't check for dangerous attributes/attribute values. This allowed cross-site scripting (XSS) attacks via attributes and link URLs, e.g., supported in XWiki syntax. This has been patched in XWiki 14.6-rc-1. There are no known workarounds apart from upgrading to a fixed version.

Weakness: CWE-79, CWE-83

Which versions are affected by CVE-2023-32070?

14 open source packages ship an affected version, including org.xwiki.platform:xwiki-core-rendering-api, org.xwiki.platform:xwiki-platform-annotation-core and org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5. It affects 2 products.

PackageAffectedFixed in
org.xwiki.platform:xwiki-core-rendering-api MavenAll versions to 3.0-milestone-2None
org.xwiki.platform:xwiki-core-rendering-api MavenAll versions to 3.0-milestone-2None
org.xwiki.platform:xwiki-platform-annotation-core MavenAll versions14.6-rc-1
org.xwiki.platform:xwiki-platform-annotation-core MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5 MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-annotatedhtml5 MavenAll versions14.6-rc-1
8 more packages
org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-annotatedxhtml MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-html MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-html MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-html5 MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-html5 MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-xhtml MavenAll versions14.6-rc-1
org.xwiki.rendering:xwiki-rendering-syntax-xhtml MavenAll versions14.6-rc-1

Products include Xwiki Rendering, Xwiki Xwiki.

How do I fix CVE-2023-32070?

Upgrade to a fixed version.

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

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-6gf5-c898-7rxp.

Is CVE-2023-32070 in your software?

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

Check your SBOMs for free