A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-5109

CVE-2026-5109: Gravity Forms WordPress Plugin XSS Flaw

CVE-2026-5109 is a stored XSS vulnerability in the Gravity Forms WordPress plugin allowing unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation strategies.

Updated: May 14, 2026

CVE-2026-5109 Overview

CVE-2026-5109 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the Gravity Forms plugin for WordPress in versions up to and including 2.10.0. The flaw resides in the handling of Product Option field values, where the state validation function accepts submitted values whose wp_kses()-sanitized form matches a legitimate option, while the database stores the raw unsanitized input. When an administrator opens the Order Summary view, the option_label is rendered without escaping at view-order-summary.php line 32. Unauthenticated attackers can submit crafted form data that executes arbitrary JavaScript in the administrator's browser session.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript that executes in administrator sessions, enabling account takeover, privilege abuse, and site compromise through form submissions.

Affected Products

  • Gravity Forms plugin for WordPress versions up to and including 2.10.0
  • WordPress sites using Product Option fields in Gravity Forms
  • Any administrator account that views entry details via the Order Summary section

Discovery Timeline

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

Technical Details for CVE-2026-5109

Vulnerability Analysis

The vulnerability is a stored XSS issue classified under [CWE-79]. Gravity Forms validates submitted Product Option values by comparing the wp_kses()-sanitized version of user input against the legitimate option values configured for the field. The comparison passes if the sanitized form matches, but the plugin persists the original unsanitized payload to the database. Attackers exploit this mismatch by submitting values that contain script content which survives storage but is filtered during validation.

When an administrator later reviews the submission, the Order Summary template at view-order-summary.php line 32 outputs the stored option_label directly into the HTML without applying esc_html() or equivalent escaping. The browser parses the embedded JavaScript and executes it under the administrator's authenticated session, giving the attacker code execution in the WordPress admin context.

Root Cause

The root cause is an inconsistency between input validation and data storage. Sanitization is applied only to a comparison copy, not to the value committed to the database. Combined with the missing output escaping in the Order Summary view, this dual flaw produces a reliable stored XSS chain reachable without authentication.

Attack Vector

The attack is performed remotely over the network by an unauthenticated user submitting a public form that contains a Product Option field. The attacker manipulates the option field value with crafted markup whose wp_kses()-sanitized form matches a legitimate option label. The payload remains dormant until an administrator opens the entry details page, at which point the script executes with administrator privileges in the browser.

The vulnerability mechanism is described in the Wordfence Vulnerability Intel advisory and the Gravity Forms Change Log.

Detection Methods for CVE-2026-5109

Indicators of Compromise

  • Gravity Forms entries containing <script>, onerror=, onload=, or other HTML event-handler syntax in Product Option field values
  • Unexpected administrator session activity (new users created, plugin installations, settings changes) following Order Summary page views
  • Outbound requests from admin browsers to unfamiliar domains after viewing form entries

Detection Strategies

  • Audit the wp_gf_entry_meta and related Gravity Forms entry tables for stored values containing HTML or JavaScript syntax
  • Inspect web server access logs for POST requests to Gravity Forms submission endpoints with payloads containing <, >, or encoded script tags in option fields
  • Compare submitted Product Option values against the configured legitimate option labels for the form to flag mismatches

Monitoring Recommendations

  • Enable Content Security Policy (CSP) headers on WordPress admin pages to restrict inline script execution and flag policy violations
  • Monitor administrator account actions in the WordPress audit log for unexpected privilege changes after viewing form entries
  • Alert on creation of new administrator accounts, plugin installs, or theme edits originating from sessions that recently accessed /wp-admin/admin.php?page=gf_entries

How to Mitigate CVE-2026-5109

Immediate Actions Required

  • Update the Gravity Forms plugin to the latest version above 2.10.0 that contains the security fix as documented in the Gravity Forms Change Log
  • Review all existing form entries for stored payloads and purge or sanitize any entries containing script content before administrators view them
  • Rotate administrator credentials and invalidate active WordPress sessions if there is evidence administrators viewed suspicious entries

Patch Information

Gravity Forms has released a patched version that addresses both the validation inconsistency in the Product Option state check and the missing output escaping in view-order-summary.php. Site operators should consult the Gravity Forms Change Log for the exact fixed version and apply the update through the WordPress plugin manager or via the vendor's automatic update mechanism.

Workarounds

  • Temporarily disable forms that include Product Option fields until the patched plugin version is installed
  • Restrict access to the WordPress admin entries page using a web application firewall (WAF) rule that blocks requests containing script syntax in Gravity Forms submission parameters
  • Apply a WAF virtual patch that rejects form submissions where Product Option values contain <, >, or HTML event-handler attributes
bash
# Example WAF rule (ModSecurity) blocking script content in Gravity Forms submissions
SecRule ARGS_NAMES "@rx ^input_[0-9]+" \
  "chain,phase:2,deny,status:403,id:1026510901,msg:'Possible CVE-2026-5109 XSS payload in Gravity Forms field'"
  SecRule ARGS "@rx (?i)(<script|onerror=|onload=|javascript:)" "t:none,t:urlDecodeUni"

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 Intel
  • Related CVEs
  • CVE-2026-5110: Gravity Forms WordPress Plugin XSS Flaw

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

  • 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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