# ThinkRank AI SEO <= 2.21.3 - Authenticated (Contributor+) Missing Authorization to Settings Categories via 'category' Parameter Override

- **ID:** WPSEC-2026-3186
- **Plugin:** ThinkRank SEO – AI SEO Plugin for SEO & Google Search Console (`thinkrank`), https://wordpress.org/plugins/thinkrank/
- **Affected versions:** from 2.2.0 before 2.21.4
- **Fixed in:** 2.21.4 (Update to 2.21.4 or later.)
- **Severity:** Medium 4.2 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-863
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-16)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/thinkrank
- **Fix released:** 2026-11-15
- **Published:** 2026-11-16
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3186/

## Description

The ThinkRank AI SEO plugin for WordPress is vulnerable to Missing Authorization via the /settings-management/category/{category} REST routes in all versions up to, and including, 2.21.3. This is due to the permission callback and the Role Manager REST gate checking the category in the URL path, while get_category_settings() and update_category_settings() use get_param('category'), which takes a 'category' value from the query string or request body before the path. This makes it possible for authenticated attackers with Contributor-level access and above, whose role an administrator has given any one ThinkRank section, to read and change the settings of any other category, including the plugin-wide core and integrations settings, by calling their own category's route with a different 'category' parameter.

## References

- https://wpsec.com/vuln/WPSEC-2026-3186/
- https://plugins.svn.wordpress.org/thinkrank/tags/2.21.4/
- https://wordpress.org/plugins/thinkrank/

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

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.
