CVE-2020-27666 Cross-site Scripting in Strapi
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.
| Package | Affected | Fixed in |
|---|---|---|
strapi-plugin-content-manager npm | All versions | 3.2.5 |
strapi-plugin-content-manager npm | All versions | 3.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.
Other vulnerabilities in n/a
- CVE-2023-22894 Strapi Cleartext Storage of Sensitive Information
- CVE-2023-22621 Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin
- CVE-2022-27263 Unrestricted Upload of File with Dangerous Type in Strapi
- CVE-2020-27664 Authorization bypass in Strapi
- CVE-2019-18818 Strapi allows unauthenticated attacker to reset admin password without valid reset token
Sources
Also known as GHSA-qvp5-mm7v-4f36.