# Groundhogg <= 4.12 - Authenticated (Sales Representative+) SQL Injection via 'activity' Contact Query Parameter

- **ID:** WPSEC-2026-4348
- **Plugin:** Groundhogg — AI CRM, Newsletters, and Marketing Automation (`groundhogg`), https://wordpress.org/plugins/groundhogg/
- **Affected versions:** all versions before 4.13
- **Fixed in:** 4.13 (Update to 4.13 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/groundhogg
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4348/

## Description

The Groundhogg plugin for WordPress is vulnerable to SQL Injection via the activity type ('activity[type]') of the contact query, for example on the GET /gh/v4/contacts REST route, in all versions up to, and including, 4.12, due to the activity type being concatenated into a table alias in the SQL join without escaping or validation. This makes it possible for authenticated attackers with Sales Representative-level access and above (view_contacts) to append additional SQL to existing queries and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-4348/
- https://plugins.svn.wordpress.org/groundhogg/tags/4.13/
- https://wordpress.org/plugins/groundhogg/

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

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.
