# WP Docs <= 2.3.5 - Authenticated (Contributor+) SQL Injection via 'orderby' and 'order' Shortcode Attributes

- **ID:** WPSEC-2026-2428
- **Plugin:** WP Docs (`wp-docs`), https://wordpress.org/plugins/wp-docs/
- **Affected versions:** all versions before 2.3.6
- **Fixed in:** 2.3.6 (Update to 2.3.6 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 None seen (as of 2026-11-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-docs
- **Fix released:** 2026-11-02
- **Published:** 2026-11-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2428/

## Description

The WP Docs plugin for WordPress is vulnerable to SQL Injection via the 'orderby' and 'order' attributes of the [wpdocs] shortcode in all versions up to, and including, 2.3.5 due to insufficient escaping and validation of the user-supplied values, which are concatenated directly into the ORDER BY clause of an SQL query. This makes it possible for authenticated attackers, with Contributor-level access and above, to append additional SQL to existing queries and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-2428/
- https://plugins.svn.wordpress.org/wp-docs/tags/2.3.6/
- https://wordpress.org/plugins/wp-docs/

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

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.
