CVE-2020-27852 Gravity Forms stored Cross-Site Scripting (XSS) vulnerability in the survey feature
Remote attackers can inject malicious scripts into Gravity Forms survey fields, which execute in the browsers of privileged users like administrators.
- 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-27852?
CVE-2020-27852 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Jan 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
A stored Cross-Site Scripting (XSS) vulnerability in the survey feature in Rocketgenius Gravity Forms before 2.4.21 allows remote attackers to inject arbitrary web script or HTML via a textarea field. This code is interpreted by users in a privileged role (Administrator, Editor, etc.).
Weakness: CWE-79
Which versions are affected by CVE-2020-27852?
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-27852?
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-27852 being exploited?
There is no known exploitation of CVE-2020-27852 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-pjv5-v9gv-3679.