# GamiPress <= 8.1.3 - Authenticated (Subscriber+) SQL Injection via Form Field Value 'compare' Key

- **ID:** WPSEC-2026-3263
- **Plugin:** GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI (`gamipress`), https://wordpress.org/plugins/gamipress/
- **Affected versions:** all versions before 8.1.4
- **Fixed in:** 8.1.4 (Update to 8.1.4 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gamipress
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3263/

## Description

The GamiPress plugin for WordPress is vulnerable to SQL Injection via the comparison operator of log 'where' conditions in all versions up to, and including, 8.1.3. This is due to gamipress_query_logs() placing the 'compare' value of a where condition directly into the SQL statement without checking it against a list of allowed operators, while several form-plugin integrations pass raw submitted field values into those conditions when counting a user's field-value trigger events. This makes it possible for authenticated attackers, with subscriber-level access and above, to append additional SQL to existing queries and extract sensitive information from the database. Exploitation requires a field-value submission requirement and a form plugin that keeps the array keys of submitted values.

## References

- https://wpsec.com/vuln/WPSEC-2026-3263/
- https://plugins.svn.wordpress.org/gamipress/tags/8.1.4/
- https://wordpress.org/plugins/gamipress/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3263/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
