CVE-2026-5112: Gravity Forms <= 2.10.0 - Unauthenticated Stored Cross-Site Scripting via Calculation Product Field in Repeater
The Gravity Forms plugin for WordPress is vulnerable to Unauthenticated Stored Cross-Site Scripting in versions up to and including 2.10.0. This is due to insufficient input validation and output escaping of Calculation Product field product names when rendered inside Repeater fields. The validate() method in the GFFieldCalculation class only validates the quantity field (.3) and completely ignores the product name field (.1), allowing malicious HTML to pass through validation. When the value is saved, the sanitizeentryvalue() method returns the raw value without sanitization for fields where HTML is not expected. Subsequently, when an entry is viewed in wp-admin, the getvalueentrydetail() method concatenates the unescaped product name directly into the output string, which is then rendered by the repeater's getvalueentrydetail() method without further escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts via form submissions that will execute whenever an authenticated administrator with the gravityformsviewentries capability accesses the entry detail page.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5112?
CVE-2026-5112 is rated as a high-severity vulnerability due to its potential for unauthenticated stored cross-site scripting.
How do I fix CVE-2026-5112?
To fix CVE-2026-5112, update the Gravity Forms plugin to version 2.10.1 or later.
What impact does CVE-2026-5112 have on Gravity Forms?
CVE-2026-5112 allows attackers to execute arbitrary JavaScript in the context of a user's session through vulnerable calculation product fields.
Is the Gravity Forms plugin affected by CVE-2026-5112?
Yes, Gravity Forms versions up to and including 2.10.0 are affected by CVE-2026-5112.
Can CVE-2026-5112 be exploited by unauthenticated users?
Yes, CVE-2026-5112 can be exploited by unauthenticated users due to inadequate input validation.