CVE-2026-5111
Stored XSS in Gravity Forms WordPress Plugin
Publication date: 2026-05-02
Last updated on: 2026-05-05
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| rocketgenius | gravity_forms | 2.10.0 |
| rocketgenius | gravity_forms | From 2.9.18 (inc) to 2.9.29 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The Gravity Forms plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 2.10.0. This occurs because the plugin does not properly validate and escape input in Hidden Product field values when used inside Repeater fields. Specifically, repeater subfields bypass state validation checks, and the Hidden Product validate() method only validates the quantity field but ignores the product name field. The product name field is later output without proper escaping, allowing an attacker to inject malicious scripts.
An unauthenticated attacker can exploit this by submitting specially crafted form data containing malicious scripts. These scripts will execute whenever an administrator views the entry details, potentially compromising the administrator's session or the website.
How can this vulnerability impact me? :
This vulnerability can allow unauthenticated attackers to inject and execute arbitrary web scripts in the context of the administrator's browser. This can lead to several impacts including:
- Compromise of administrator accounts through session hijacking or credential theft.
- Execution of malicious actions on behalf of the administrator, such as changing site settings or installing malware.
- Potential defacement or unauthorized content injection on the website.
- Loss of data integrity and trustworthiness of the website.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability affects Gravity Forms plugin versions up to and including 2.10.0. To mitigate this vulnerability, you should update the Gravity Forms plugin to a version later than 2.10.0 where this issue is fixed.
Since the vulnerability allows unauthenticated attackers to inject scripts via form submissions that execute when administrators view entry details, immediate mitigation includes restricting access to form entry details to trusted users only and monitoring for suspicious form submissions.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability in the Gravity Forms plugin allows unauthenticated attackers to inject arbitrary web scripts that execute when an administrator views entry details. This Stored Cross-Site Scripting (XSS) flaw can lead to unauthorized access or manipulation of administrative interfaces and potentially sensitive data.
Such a vulnerability could impact compliance with standards like GDPR and HIPAA by exposing personal or sensitive data to unauthorized parties through exploitation of the XSS flaw, thereby violating data protection and privacy requirements.
However, the provided context and resources do not explicitly discuss the impact of this vulnerability on compliance with these or other common standards and regulations.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability involves Stored Cross-Site Scripting in the Gravity Forms WordPress plugin versions up to 2.10.0, specifically through Hidden Product field values inside Repeater fields. Detection typically involves identifying if the vulnerable plugin version is installed and checking for suspicious or malicious script injections in form submissions.
Since the vulnerability is triggered when an administrator views entry details containing injected scripts, detection can include reviewing Gravity Forms entries for unexpected or suspicious HTML or JavaScript code in Hidden Product fields.
There are no specific commands provided in the available resources or CVE description to detect this vulnerability directly on a network or system.