PT-2026-36577 · Gravity Forms · Gravity Forms

Tadokun

·

Published

2026-05-02

·

Updated

2026-05-02

·

CVE-2026-5113

CVSS v3.1

7.2

High

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
The Gravity Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Consent field hidden inputs in versions up to and including 2.10.0. This is due to a flawed state validation mechanism that fails open when input is sanitized by wp kses(), combined with insufficient output escaping. The state validation logic creates two hashes (raw input and wp kses-sanitized input) and only fails validation if BOTH hashes don't match the original state. When an attacker injects XSS payloads using tags stripped by wp kses() (like ), the sanitized hash matches while the malicious raw value is preserved and saved to the database. When administrators view the Entries List page, the stored malicious consent label is retrieved and output without escaping, causing the XSS payload to execute. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in entries that will execute whenever an authenticated administrator accesses the entries list page.

Fix

XSS

Weakness Enumeration

Related Identifiers

CVE-2026-5113

Affected Products

Gravity Forms