Home

Description

The 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.

PUBLISHED Reserved 2026-03-18 | Published 2026-04-07 | Updated 2026-04-08 | Assigner Wordfence




MEDIUM: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Problem types

CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product status

Default status
unaffected

Any version
affected

Timeline

2026-03-18:Vendor Notified
2026-04-07:Disclosed

Credits

tadokun finder

References

www.wordfence.com/...-6df6-47a2-a9ba-87ef1f039e44?source=cve

plugins.trac.wordpress.org/.../class-gf-field-creditcard.php

plugins.trac.wordpress.org/.../class-gf-field-creditcard.php

plugins.trac.wordpress.org/.../class-gf-field-creditcard.php

plugins.trac.wordpress.org/.../class-gf-field-creditcard.php

docs.gravityforms.com/gravityforms-change-log/

cve.org (CVE-2026-4394)

nvd.nist.gov (CVE-2026-4394)

Download JSON