Live threats

All CVEs / Craftcms

CVE-2026-31858Craftcms Craft Cms

High 8.7

Priority
52
CVSS 4.0
8.7
EPSS
—
Auth required
Yes
Published
Mar 11, 2026
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Craft Cms.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist craftcms/cms ≥ 5.0.0-RC1 < 5.9.9 5.9.9 composer require "craftcms/cms:^5.9.9"

Per OSV / GitHub Advisories (GHSA-g7j6-fmwx-7vp8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
craftcmscraft_cms≥ 5.0.1 < 5.9.9
craftcmscraft_cms5.0.0
craftcmscraft_cms5.0.0

Official sources

References

Links published by the sources. Open them with care.