CVE-2020-27851 Gravity Forms stored HTML injection vulnerability
Remote attackers can inject arbitrary HTML into Gravity Forms poll and quiz answers, potentially compromising privileged user accounts.
- 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-27851?
CVE-2020-27851 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
Multiple stored HTML injection vulnerabilities in the "poll" and "quiz" features in an additional paid add-on of Rocketgenius Gravity Forms before 2.4.21 allows remote attackers to inject arbitrary HTML code via poll or quiz answers. This code is interpreted by users in a privileged role (Administrator, Editor, etc.).
Weakness: CWE-79
Which versions are affected by CVE-2020-27851?
2 open source packages ship an affected version, including wp-premium/gravityforms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
wp-premium/gravityforms Packagist | All versions | 2.4.21 |
wp-premium/gravityforms Packagist | All versions | 2.4.21 |
Products include Rocketgenius Gravityforms.
How do I fix CVE-2020-27851?
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-27851 being exploited?
There is no known exploitation of CVE-2020-27851 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-fcj2-rxqc-294c.