CVE-2026-4406 Details
Description
The Gravity Forms plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `form_ids` parameter in the `gform_get_config` AJAX action in all versions up to, and including, 2.9.30. This is due to the `GFCommon::send_json()` method outputting JSON-encoded data wrapped in HTML comment delimiters using `echo` and `wp_die()`, which serves the response with a `Content-Type: text/html` header instead of `application/json`. The `wp_json_encode()` function does not HTML-encode angle brackets within JSON string values, allowing injected HTML/script tags in `form_ids` array values to be parsed and executed by the browser. The required `config_nonce` is generated with `wp_create_nonce('gform_config_ajax')` and is publicly embedded on every page that renders a Gravity Forms form, making it identical for all unauthenticated visitors within the same 12-hour nonce tick. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. This vulnerability cannot be exploited against users who are authenticated on the target system, but could be used to alter the target page.
A reflected cross-site scripting vulnerability has been identified in the Gravity Forms plugin for WordPress, affecting all versions through 2.9.30. The issue arises in the 'gform_get_config' AJAX action, where the 'form_ids' parameter is processed. The vulnerability is caused by the 'GFCommon::send_json()' method, which incorrectly outputs JSON data wrapped in HTML comment delimiters. This misconfiguration serves the response with a 'Content-Type: text/html' header instead of 'application/json', allowing injected HTML or script tags in the 'form_ids' array values to be executed by the browser. The 'config_nonce' required for this action is publicly available on all pages with a Gravity Forms form, creating a window for unauthenticated attackers to inject scripts that could be executed if a user is tricked into interacting with the page.
Users are advised to update the Gravity Forms plugin to version 2.9.31 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 8, 2026CISA-ADP
Assessed Apr 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.gravityforms.com/gravityforms-change-log/ | [email protected] | Release NotesVendor |
| https://plugins.trac.wordpress.org/browser/gravityforms/trunk/common.php#L8267 | [email protected] | Broken LinkSource CodeVendor |
| https://plugins.trac.wordpress.org/browser/gravityforms/trunk/includes/config/class-gf-config-collection.php#L56 | [email protected] | Broken LinkSource CodeVendor |
| https://plugins.trac.wordpress.org/browser/gravityforms/trunk/includes/config/class-gf-config-service-provider.php#L144 | [email protected] | Broken LinkSource CodeVendor |
| https://plugins.trac.wordpress.org/browser/gravityforms/trunk/includes/config/items/class-gf-config-global.php#L22 | [email protected] | Broken LinkSource CodeVendor |
| https://www.wordfence.com/threat-intel/vulnerabilities/id/4126d452-65a9-48f5-a3f5-5be1b8fff80c?source=cve | [email protected] | AdvisoryBundleRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gravity Forms | <= 2.9.30 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2026 | New CVE Received | [email protected] |
Volerion