CVE-2026-4394
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe Gravity Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Credit Card field's 'Card Type' sub-field (`input_<id>.4`) in all versions up to, and including, 2.9.30. This is due to the `get_value_entry_detail()` method in the `GF_Field_CreditCard` class outputting the card type value without escaping, combined with `get_value_save_entry()` accepting and storing unsanitized user input for the `input_<id>.4` parameter. The Card Type field is not rendered on the frontend form (it is normally derived from the card number), but the backend submission parser blindly accepts it if included in the POST request. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator views the form entry in the WordPress dashboard.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Gravity Forms plugin for WordPress contains a stored XSS vulnerability in the Credit Card field's Card Type sub-field (input_<id>.4). The get_value_save_entry() method accepts and stores unsanitized user input from POST requests, and get_value_entry_detail() outputs this value without escaping when administrators view form entries in the dashboard.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm Gravity Forms plugin is installedNavigate to WordPress admin > Plugins or check wp-content/plugins/ for 'gravityforms' directory. Alternatively, search for 'Gravity Forms' in the Plugins page.Affected if Plugin is not installed or not present in the system
-
Check installed Gravity Forms versionGo to WordPress admin > Plugins > Gravity Forms and look at the version number, or check the main plugin file header for 'Version:' value. Compare against 2.9.31.Affected if Version is lower than 2.9.31 (e.g., 2.9.30, 2.9.0, 2.8.x, etc.)
-
Identify forms using Credit Card fieldsGo to Forms > Forms in WordPress admin. For each form, edit it and look for a 'Credit Card' field type in the form editor. Note the field IDs.Affected if At least one form contains an active Credit Card field
-
Inspect recent POST submissions for suspicious inputCheck server access logs or web application firewall logs for POST requests to /?gf_page=submit or /wp-json/gf/v2/submissions containing patterns like 'input_<number>.4=' with unusual characters such as <script, javascript:, or encoded HTML tags.Affected if POST requests to Gravity Forms endpoints contain unsanitized Card Type values (input_<id>.4 parameter)
The environment is affected if Gravity Forms version is below 2.9.31 AND at least one form contains an active Credit Card field, allowing unauthenticated stored XSS via the Card Type parameter.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate Gravity Forms to version 2.9.31 or later which contains the fix for proper input sanitization and output escaping. If immediate update is not possible, restrict access to form entry dashboards or disable the plugin.
2.9.31 or later
- 1. Backup your WordPress site and database before performing any updates.
- 2. Navigate to the WordPress admin dashboard > Plugins section.
- 3. Locate Gravity Forms plugin and check for available updates.
- 4. Update Gravity Forms to version 2.9.31 or later.
- 5. Verify the update was successful by checking the plugin version number.
- 6. Test that form entries can still be viewed in the admin dashboard without errors.
- 7. Confirm the stored XSS vulnerability is remediated by attempting to submit a form with malicious script in the Card Type field (input_<id>.4) - the script should now be properly escaped.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation1.0 h
- Testing2.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,664.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-4394 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-4394 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data