CVE-2026-4406: Gravity Forms <= 2.9.30 - Reflected Cross-Site Scripting via 'form_ids' Parameter

Published Apr 7, 2026
·
Updated

The Gravity Forms plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the formids parameter in the gformgetconfig AJAX action in all versions up to, and including, 2.9.30. This is due to the GFCommon::sendjson() method outputting JSON-encoded data wrapped in HTML comment delimiters using echo and wpdie(), which serves the response with a Content-Type: text/html header instead of application/json. The wpjsonencode() function does not HTML-encode angle brackets within JSON string values, allowing injected HTML/script tags in formids array values to be parsed and executed by the browser. The required confignonce is generated with wpcreatenonce('gformconfigajax') 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.

Affected Software

1 affected component
Gravity Forms Gravity Forms<=2.9.30

Event History

Apr 7, 2026
CVE Published
via MITRE·11:25 PM
Data Sourced
via MITRE·11:25 PM
DescriptionSeverityWeakness
Apr 8, 2026
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-4406?

The severity of CVE-2026-4406 is considered high due to its potential for reflected cross-site scripting attacks.

2

How do I fix CVE-2026-4406?

To fix CVE-2026-4406, update the Gravity Forms plugin to version 2.9.31 or later.

3

Which versions of Gravity Forms are affected by CVE-2026-4406?

CVE-2026-4406 affects all versions of Gravity Forms up to and including 2.9.30.

4

What type of vulnerability is CVE-2026-4406?

CVE-2026-4406 is a reflected cross-site scripting (XSS) vulnerability.

5

How can an attacker exploit CVE-2026-4406?

An attacker can exploit CVE-2026-4406 by injecting malicious scripts through the 'form_ids' parameter in the gform_get_config AJAX action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203