Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-31858

CraftCMS's `ElementSearchController` Affected by Blind SQL Injection
Back to all
CVE

CVE-2026-31858

CraftCMS's `ElementSearchController` Affected by Blind SQL Injection

Craft is a content management system (CMS). The ElementSearchController::actionSearch() endpoint is missing the unset() protection that was added to ElementIndexesController in CVE-2026-25495. The exact same SQL injection vulnerability (including criteria[orderBy], the original advisory vector) works on this controller because the fix was never applied to it. Any authenticated control panel user (no admin required) can inject arbitrary SQL via criteria[where], criteria[orderBy], or other query properties, and extract the full database contents via boolean-based blind injection. Users should update to the patched 5.9.9 release to mitigate the issue.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.7
-
4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31858.json, https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8, https://nvd.nist.gov/vuln/detail/CVE-2026-31858, https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42

Severity

0

CVSS Score
0
10

Basic Information

Base CVSS
0
EPSS Probability
0.00043%
EPSS Percentile
0.13521%
Introduced Version
04755d93f86d07cc183db47db8a0eee106892e30
Fix Available
e1a3dd669ae31491b86ad996e88a1d30d33d9a42

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading