The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5111

CVE-2026-5111: Gravity Forms WordPress XSS Vulnerability

CVE-2026-5111 is a stored cross-site scripting flaw in Gravity Forms plugin for WordPress that allows unauthenticated attackers to inject malicious scripts. This post explains its impact, affected versions, and mitigation steps.

Published: May 7, 2026

CVE-2026-5111 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 resides in the handling of Hidden Product fields placed inside Repeater fields, where insufficient input validation and output escaping allow unauthenticated attackers to inject arbitrary JavaScript through public form submissions. The injected script executes when an administrator opens the entry detail view in the WordPress admin dashboard. The issue is tracked under CWE-79 and carries a CVSS 3.1 score of 7.2.

Critical Impact

Unauthenticated attackers can persist JavaScript payloads in form entries that execute in administrator browser sessions, enabling session theft, account takeover, or further WordPress compromise.

Affected Products

  • Gravity Forms plugin for WordPress versions up to and including 2.10.0
  • WordPress sites with Repeater fields containing Hidden Product fields
  • Any administrator account that views Gravity Forms entry details on affected installations

Discovery Timeline

  • 2026-05-02 - CVE-2026-5111 published to NVD
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-5111

Vulnerability Analysis

The vulnerability is a stored XSS issue rooted in two cooperating defects within Gravity Forms. Repeater subfields bypass the plugin's standard state validation checks, which normally prevent tampering with read-only field values such as Hidden Product fields. Without that protection, an attacker can submit arbitrary content for the product name portion of a Hidden Product field even though the field is intended to carry server-defined values.

The second defect is in the validate() method of the Hidden Product field. The method only validates the quantity component and ignores the product name component. The unvalidated product name is later rendered by the get_value_entry_detail() method without proper output escaping. When an administrator opens the entry in the WordPress dashboard, the injected payload executes in the administrator's authenticated session.

Because exploitation requires no authentication and no user interaction beyond an administrator viewing entries, attackers can target any public form built with vulnerable versions. Successful exploitation can lead to admin session hijacking, plugin or theme modification, creation of rogue administrator accounts, or pivoting to additional WordPress compromise.

Root Cause

The root cause is twofold: Repeater subfields skip the field state validation that protects hidden field integrity, and the Hidden Product validate() routine performs incomplete validation by checking only the quantity field. Output escaping is also missing in get_value_entry_detail(), allowing stored payloads to render as live HTML.

Attack Vector

An unauthenticated attacker submits a crafted form on a vulnerable site. The form includes a Repeater field containing a Hidden Product field whose product name parameter carries a JavaScript payload. The plugin accepts and stores the malicious value. When an administrator later reviews the form entry, the payload executes in the context of the WordPress admin origin.

No verified exploit code is publicly available. Refer to the Wordfence Vulnerability Report for additional technical details.

Detection Methods for CVE-2026-5111

Indicators of Compromise

  • Gravity Forms entries containing HTML or JavaScript markup such as <script>, onerror=, or onload= inside Hidden Product field values
  • Unexpected outbound requests originating from /wp-admin/ pages when administrators view form entries
  • New or modified WordPress administrator accounts created shortly after entry review activity
  • Form submissions referencing Repeater fields with anomalous product name strings

Detection Strategies

  • Audit the wp_gf_entry_meta and related Gravity Forms tables for entries whose Hidden Product field values contain angle brackets, event handlers, or JavaScript URI schemes
  • Monitor WordPress admin sessions for script-driven actions such as user creation, role changes, or plugin installation that occur during entry review workflows
  • Inspect web server access logs for POST requests to Gravity Forms submission endpoints carrying suspicious payloads in repeater subfield parameters

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting in the WordPress admin to surface inline script execution from stored entry data
  • Forward WordPress audit logs and web server logs to a centralized SIEM and alert on administrative changes following entry views
  • Track Gravity Forms plugin version across all WordPress sites and flag installations at or below 2.10.0

How to Mitigate CVE-2026-5111

Immediate Actions Required

  • Update the Gravity Forms plugin to a version above 2.10.0 that addresses CVE-2026-5111, per the Gravity Forms Change Log
  • Review existing form entries for stored payloads and sanitize or delete entries containing script content before administrators open them
  • Restrict administrator access to entry detail screens until the plugin is patched

Patch Information

Gravity Forms has issued a fix in a release subsequent to 2.10.0. Consult the Gravity Forms Change Log for the specific patched version and apply the update across all WordPress installations using the plugin. Verify the upgrade by confirming the installed version in the WordPress plugins screen.

Workarounds

  • Temporarily disable forms that combine Repeater fields with Hidden Product fields until the plugin is updated
  • Deploy a Web Application Firewall (WAF) rule to block form submissions containing HTML or JavaScript markup in Hidden Product field parameters
  • Apply a strict Content Security Policy on /wp-admin/ to prevent inline script execution from stored entry content
bash
# Example WP-CLI commands to inventory and update Gravity Forms
wp plugin get gravityforms --field=version
wp plugin update gravityforms
wp plugin list --status=active --format=table

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGravity Forms

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Gravity Forms Change Log

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-5109: Gravity Forms WordPress XSS Vulnerability

  • CVE-2026-5110: Gravity Forms WordPress Plugin XSS Flaw

  • CVE-2026-5112: WordPress Gravity Forms XSS Vulnerability

  • CVE-2026-5113: Gravity Forms WordPress Plugin XSS Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English