CVE-2020-27851: Wp premium/gravityforms Gravity Forms Stored HTML Injection Vulnerability
MODERATECVE-2020-27851 is a MODERATE (CVSS 5.4) gravity forms stored html injection vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Wp premium/gravityforms libraries in the Packagist ecosystem. The issue involves gravity forms stored html injection vulnerability. Remediation is available by upgrading affected packages to version 2.4.21.
CVE-2020-27851 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2020-27851
To remediate this vulnerability, upgrade all affected Wp premium/gravityforms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade wp-premium/gravityforms to 2.4.21
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for wp-premium/gravityforms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-27851, inspect your project dependencies for Wp premium/gravityforms:
inspect dependencies for wp-premium/gravityforms
Analyze the terminal output to locate any version of Wp premium/gravityforms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.21), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Wp premium/gravityforms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-27851 Affected Wp premium/gravityforms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wp-premium/gravityforms
|
Packagist |
< 2.4.21
|
2.4.21
|
References
Frequently Asked Questions
What is CVE-2020-27851?
Which Wp premium/gravityforms versions are affected?
What version fixes CVE-2020-27851?
Is wp-premium/gravityforms affected?
What is the CVSS score of CVE-2020-27851?
What CWE is associated with CVE-2020-27851?
How can I check Packagist dependencies for CVE-2020-27851?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fcj2-rxqc-294c",
"modified" : "2024-04-24T18:05:25Z",
"published" : "2022-05-24T17:39:34Z",
"aliases" : [ "CVE-2020-27851" ],
"summary" : "Gravity Forms stored HTML injection vulnerability",
"details" : "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.).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "wp-premium/gravityforms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.21"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-27851"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wp-premium/gravityforms"
}, {
"type" : "WEB",
"url" : "https://www.digital.security/advisories/cert-ds_advisory_cve-2020-27851.txt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-24T18:05:25Z",
"nvd_published_at" : "2021-01-20T04:15:00Z"
}
}