CVE-2022-29251 Cross-site Scripting in the Flamingo theme manager

High 7.4 Published Updated

Attackers can inject malicious scripts via the newThemeName field in the Flamingo theme manager, potentially compromising user sessions.

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

What is CVE-2022-29251?

CVE-2022-29251 is a high-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 25 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

XWiki Platform Flamingo Theme UI is a tool that allows customization and preview of any Flamingo-based skin. Starting with versions 6.2.4 and 6.3-rc-1, a possible cross-site scripting vector is present in the `FlamingoThemesCode.WebHomeSheet` wiki page related to the "newThemeName" form field. The issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, and 13.10.3. The easiest available workaround is to edit the wiki page `FlamingoThemesCode.WebHomeSheet` (with wiki editor) according to the suggestion provided in the GitHub Security Advisory.

Weakness: CWE-79, CWE-80, CWE-116

Which versions are affected by CVE-2022-29251?

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

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-flamingo-theme-ui MavenAll versions12.10.11
org.xwiki.platform:xwiki-platform-flamingo-theme-ui MavenAll versions12.10.11
org.xwiki.platform:xwiki-platform-flamingo-theme-ui MavenFrom 13.0.013.4.7
org.xwiki.platform:xwiki-platform-flamingo-theme-ui MavenFrom 13.0.013.4.7
org.xwiki.platform:xwiki-platform-flamingo-theme-ui MavenFrom 13.5.013.10.3
org.xwiki.platform:xwiki-platform-flamingo-theme-ui MavenFrom 13.5.013.10.3

Products include Xwiki Xwiki.

How do I fix CVE-2022-29251?

Upgrade org.xwiki.platform:xwiki-platform-flamingo-theme-ui to a fixed version for your release line: 12.10.11, 13.4.7 or 13.10.3.

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-2022-29251 being exploited?

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

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-vmhh-xh3g-j992.

Is CVE-2022-29251 in your software?

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

Check your SBOMs for free