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

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

CVE-2026-5113 is a stored cross-site scripting vulnerability in Gravity Forms for WordPress that allows unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-5113 Overview

CVE-2026-5113 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 Consent field hidden inputs, where a state validation mechanism fails open when input passes through wp_kses(). Unauthenticated attackers can inject arbitrary JavaScript that executes in an administrator's browser when they view the Entries List page. This vulnerability is tracked as CWE-79.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript that executes in administrator sessions, enabling account takeover, privilege escalation, and arbitrary actions within the WordPress admin interface.

Affected Products

  • Gravity Forms plugin for WordPress, versions up to and including 2.10.0
  • WordPress sites with Consent fields enabled in forms
  • WordPress administrators accessing the plugin's Entries List page

Discovery Timeline

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

Technical Details for CVE-2026-5113

Vulnerability Analysis

The vulnerability stems from a flawed state validation mechanism in the Consent field's hidden input handling. Gravity Forms generates two hashes during validation: one over the raw input and another over input sanitized by wp_kses(). The validation only fails when both hashes diverge from the original state hash. This logic creates a bypass condition that attackers can reliably trigger.

When an attacker submits a payload using HTML tags that wp_kses() strips entirely, such as <svg> elements with event handlers, the sanitized version produces an empty or modified string that aligns with the expected sanitized hash. The raw input retains the malicious payload because the validator does not require the raw hash to match. The plugin then persists the unsanitized consent label to the database.

The second flaw appears at output time. When an administrator loads the Entries List page, the plugin retrieves the stored consent label and renders it without applying output escaping. The browser parses the injected markup and executes the JavaScript in the administrator's authenticated session.

Root Cause

The root cause is a logical OR condition in the state validation routine that should have been a logical AND. By accepting either hash as valid proof of integrity, the validator permits raw input mutations that wp_kses() would otherwise neutralize. Insufficient context-aware output encoding on the Entries List page compounds the issue.

Attack Vector

The attack requires no authentication and no user interaction beyond an administrator visiting the entries page. An attacker submits a public-facing form containing a Consent field, embedding a payload built from tags that wp_kses() removes during sanitization. The payload survives in the database and triggers when an administrator reviews submitted entries.

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

Detection Methods for CVE-2026-5113

Indicators of Compromise

  • Form entries containing HTML tags such as <svg>, <math>, or other elements typically stripped by wp_kses() within Consent field values
  • Database rows in wp_gf_entry_meta or related Gravity Forms tables containing JavaScript event handlers like onload=, onerror=, or onclick=
  • Unexpected outbound requests originating from administrator browser sessions immediately after viewing the Entries List page
  • New administrator accounts or modified user roles created shortly after entry review activity

Detection Strategies

  • Audit Gravity Forms entry data for HTML-like content in Consent field columns using SQL queries against the WordPress database
  • Deploy Web Application Firewall (WAF) rules that flag form submissions containing <svg, <math, or event handler attributes in Consent field parameters
  • Monitor WordPress admin sessions for anomalous DOM activity or script execution within the /wp-admin/admin.php?page=gf_entries context

Monitoring Recommendations

  • Enable verbose logging on WordPress for form submissions and review entries periodically for suspicious payloads
  • Correlate web server access logs with administrator authentication events to identify post-exploitation activity
  • Track plugin version inventory across managed WordPress sites to confirm upgrade status

How to Mitigate CVE-2026-5113

Immediate Actions Required

  • Upgrade Gravity Forms to a version released after 2.10.0 that addresses CVE-2026-5113
  • Audit existing form entries for stored payloads and purge or sanitize any malicious Consent field values before administrators view them
  • Restrict access to the Gravity Forms entries page to a minimum set of administrator accounts
  • Reset session cookies and credentials for administrators who may have viewed compromised entries

Patch Information

Gravity Forms has published version updates documented in the Gravity Forms Change Log. Site operators should apply the latest release that supersedes 2.10.0. Verify the installed version under the WordPress Plugins page after the update completes.

Workarounds

  • Disable Consent fields across all active forms until the patch is applied
  • Deploy a WAF rule that blocks form submissions containing HTML tags or JavaScript event handlers in Consent field inputs
  • Temporarily restrict the Entries List page using IP allowlisting at the web server or reverse proxy layer
bash
# Example WAF rule (ModSecurity) blocking script-like content in Gravity Forms input
SecRule ARGS_NAMES "@rx ^input_" \
  "chain,phase:2,deny,status:403,id:1026511301,msg:'Potential CVE-2026-5113 XSS payload'"
  SecRule ARGS "@rx (?i)(<svg|<math|onerror=|onload=)" "t:none"

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-5111: Gravity Forms WordPress XSS Vulnerability

  • CVE-2026-5112: WordPress Gravity Forms XSS Vulnerability
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