CVE-2020-27850 Gravity Forms stored Cross-Site Scripting (XSS) vulnerability
Remote attackers can inject arbitrary scripts via form imports, potentially compromising privileged user accounts in Gravity Forms.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-27850?
CVE-2020-27850 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Jan 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A stored Cross-Site Scripting (XSS) vulnerability in forms import feature in Rocketgenius Gravity Forms before 2.4.21 allows remote attackers to inject arbitrary web script or HTML via the import of a GF form. This code is interpreted by users in a privileged role (Administrator, Editor, etc.).
Weakness: CWE-79
Which versions are affected by CVE-2020-27850?
2 open source packages ship an affected version, including wp-premium/gravityforms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
wp-premium/gravityforms Packagist | From 2.4 | 2.4.21 |
wp-premium/gravityforms Packagist | From 2.4 | 2.4.21 |
Products include Rocketgenius Gravityforms.
How do I fix CVE-2020-27850?
Upgrade wp-premium/gravityforms to 2.4.21 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-27850 being exploited?
There is no known exploitation of CVE-2020-27850 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-wmh7-782f-xfw5.