CVE-2020-27666 Cross-site Scripting in Strapi

Medium 5.4 Published Updated

Attackers can inject malicious scripts via the WYSIWYG editor preview, potentially executing code or hijacking user accounts in Strapi CMS.

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-2020-27666?

CVE-2020-27666 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Oct 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Strapi before 3.2.5 has stored XSS in the wysiwyg editor's preview feature.

Weakness: CWE-79

Which versions are affected by CVE-2020-27666?

2 open source packages ship an affected version, including strapi-plugin-content-manager. It affects 1 product.

PackageAffectedFixed in
strapi-plugin-content-manager npmAll versions3.2.5
strapi-plugin-content-manager npmAll versions3.2.5

Products include Strapi Strapi.

How do I fix CVE-2020-27666?

Upgrade strapi-plugin-content-manager to 3.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-2020-27666 being exploited?

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

Sources

Also known as GHSA-qvp5-mm7v-4f36.

Is CVE-2020-27666 in your software?

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

Check your SBOMs for free