SQL injection in WordPress - #VU168248
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to read database data without authorization if a plugin or theme passes untrusted nested meta_query input to WordPress.
The vulnerability exists due to insufficient sanitization in WP_Meta_Query when it incorporates relation values from certain nested clauses into generated SQL. A remote attacker can supply input through a plugin or theme that exposes this query functionality to read database data through SQL injection.