CVE-2021-35959 Plone has stored XSS in folder contents

Medium 5.4 Published Updated

Attackers can execute arbitrary scripts in the folder contents view via malicious folder descriptions, affecting Plone CMS users.

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-2021-35959?

CVE-2021-35959 is a medium-severity cross-site scripting vulnerability in Plone Plone, published on 30 Jun 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In Plone 5.0 through 5.2.4, Editors are vulnerable to XSS in the folder contents view, if a Contributor has created a folder with a SCRIPT tag in the description field.

Weakness: CWE-79

Which versions are affected by CVE-2021-35959?

3 open source packages ship an affected version, including plone and Plone. It affects 1 product.

PackageAffectedFixed in
plone PyPIFrom 5.0 to 5.2.4None
plone PyPIFrom 5.05.2.5
Plone PyPIFrom 5.0 to 5.2.4None

Products include Plone Plone.

How do I fix CVE-2021-35959?

Upgrade plone to 5.2.5 or later.

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-2021-35959 being exploited?

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

All Plone Plone vulnerabilities

Sources

Also known as GHSA-qfhw-fv3g-v836, PYSEC-2021-110.

Is CVE-2021-35959 in your software?

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

Check your SBOMs for free