Authenticated SQL injection in a widely-used open-source WordPress theme
A registered REST endpoint of a widely-used open-source WordPress theme interpolates a request parameter directly into a SQL query without sanitisation or parameterisation. Any authenticated user with contributor-level privileges (edit_posts) can inject arbitrary SQL — sufficient to read the WordPress users table, including password hashes. current release.
a widely-used open-source WordPress theme registers a REST endpoint that enumerates post-meta keys for a given post type. The post-type parameter is read from the request and interpolated into a SQL statement without escaping or $wpdb->prepare(). Because the route only requires edit_posts (contributor level), any logged-in user with the contributor role or above can inject arbitrary SQL.
The injection is a classic time-based blind SQLi: an attacker-controlled subquery is appended to the interpolated value, and the response time reveals the result bit by bit. With SELECT-level SQL execution, the entire WordPress database is readable — including wp_users with password hashes and any plugin-stored secrets (API keys, tokens).
The sink is unchanged in current release. Site owners should treat every untrusted contributor account on affected sites as a potential database-compromise vector until a fixed release exists.
Reported by codelake research — automated pipeline detection, manually verified. Coordinated disclosure in progress.