SQL injection in Craft CMS - CVE-2026-31858
Published: June 16, 2026
Craft CMS
Detailed vulnerability description
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to SQL injection in the ElementSearchController::actionSearch() endpoint when handling crafted query properties. A remote user can inject arbitrary SQL via criteria[where], criteria[orderBy], or other query properties to disclose sensitive information.
The issue is exploitable through boolean-based blind injection, and no administrative privileges are required.