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-5109

CVE-2026-5109: Gravity Forms WordPress XSS Vulnerability

CVE-2026-5109 is a stored XSS vulnerability in Gravity Forms plugin for WordPress affecting versions up to 2.10.0. Unauthenticated attackers can inject malicious scripts that execute when admins view entries. This article covers technical details, affected versions, impact, and mitigation steps.

Published: May 7, 2026

CVE-2026-5109 Overview

CVE-2026-5109 is a stored Cross-Site Scripting (XSS) vulnerability in the Gravity Forms plugin for WordPress, affecting all versions up to and including 2.10.0. The flaw resides in the Product Option field, where the state validation function relies on wp_kses()-sanitized values for comparison but persists the raw, unsanitized input to the database. When an administrator opens the entry details page, the option_label is rendered without output escaping in view-order-summary.php at line 32, executing any injected JavaScript. Unauthenticated attackers can submit forms that trigger script execution in an administrator's browser session [CWE-79].

Critical Impact

Unauthenticated attackers can inject JavaScript that executes in administrator browsers, enabling session theft, account takeover, and arbitrary actions in the WordPress admin context.

Affected Products

  • Gravity Forms plugin for WordPress, versions up to and including 2.10.0
  • WordPress sites with the Product Option field exposed in public forms
  • Administrator workflows that render entries via the Order Summary view

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 stems from a validation and storage mismatch in how Gravity Forms processes Product Option field submissions. The state validation routine sanitizes the submitted value using wp_kses() and compares the sanitized result against the legitimate option value defined by the form author. If the comparison succeeds, the code accepts the submission as valid. The plugin then writes the original, unsanitized payload into the entries table rather than the sanitized version used for comparison.

When an administrator later opens the entry, view-order-summary.php echoes the stored option_label without applying esc_html() or equivalent escaping. Any HTML or <script> content stored in that field renders directly in the admin DOM. Because submission requires no authentication, anonymous attackers can plant payloads at scale.

Root Cause

The root cause is improper neutralization of input during web page generation, classified as [CWE-79]. Two failures combine: validation operates on a sanitized copy while storage uses the raw value, and the rendering path lacks contextual output escaping. Either control alone would have prevented exploitation.

Attack Vector

An unauthenticated attacker locates a public Gravity Forms form that includes a Product Option field. The attacker manipulates the submitted option value to embed JavaScript while ensuring the wp_kses()-sanitized version still matches a legitimate option label. The malicious entry is stored. When any administrator reviews the entry's Order Summary, the script executes with the administrator's privileges, allowing cookie theft, CSRF actions, or persistent backdoor installation through plugin or theme editing.

No verified proof-of-concept code is publicly available. See the Wordfence Security Vulnerability advisory for additional technical context.

Detection Methods for CVE-2026-5109

Indicators of Compromise

  • Gravity Forms entries containing HTML tags, <script> elements, or javascript: URIs in Product Option fields.
  • Unexpected administrator account creation, role changes, or plugin/theme file modifications shortly after entry submissions.
  • Outbound requests from administrator browsers to unfamiliar domains while viewing the Forms entries page.

Detection Strategies

  • Query the wp_gf_entry_meta and related Gravity Forms tables for meta_value entries containing <, >, onerror=, or script substrings.
  • Inspect web server access logs for POST requests to form submission endpoints with payloads containing encoded HTML or JavaScript.
  • Review WordPress audit logs for administrative actions originating from the Gravity Forms entry view URL pattern admin.php?page=gf_entries.

Monitoring Recommendations

  • Enable a Web Application Firewall rule set that flags HTML or script content in form submissions targeting Gravity Forms endpoints.
  • Forward WordPress and web server logs to a centralized SIEM such as Singularity Data Lake for correlation between submission events and subsequent admin activity.
  • Use endpoint telemetry from Singularity Endpoint on administrator workstations to detect browser-driven actions that follow a stored XSS trigger.

How to Mitigate CVE-2026-5109

Immediate Actions Required

  • Update the Gravity Forms plugin to a version above 2.10.0 that addresses the validation and escaping flaw.
  • Audit existing entries for malicious payloads in Product Option fields and purge or sanitize affected records before viewing them.
  • Rotate WordPress administrator passwords and invalidate active sessions if entry pages were accessed during the exposure window.

Patch Information

Gravity Forms has released a fix tracked in the Gravity Forms Change Log. Apply the latest plugin release through the WordPress dashboard or via WP-CLI. Confirm the installed version exceeds 2.10.0 after the update completes.

Workarounds

  • Temporarily disable forms that expose the Product Option field to unauthenticated users until the patch is applied.
  • Restrict access to the WordPress admin area with IP allowlisting or VPN-only access to limit who can trigger the rendering of malicious entries.
  • Deploy a Content Security Policy (CSP) that disallows inline scripts on wp-admin pages to reduce the impact of stored payloads.
bash
# Update Gravity Forms via WP-CLI on the affected host
wp plugin update gravityforms --version=latest
wp plugin status gravityforms

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 Security Vulnerability
  • 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 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