SCA: security update for craftcms/cms (GHSA-g7j6-fmwx-7vp8)

high Tenable Cloud Security Plugin ID 438630

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-31858)

Solution

Update the craftcms/cms library and its related packages to version 5.9.9 or later.

See Also

https://github.com/advisories/GHSA-g7j6-fmwx-7vp8

Plugin Details

Severity: High

ID: 438630

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 3/11/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.88

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-31858

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.3

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/11/2026

Vulnerability Publication Date: 3/11/2026

Reference Information

CVE: CVE-2026-31858

cwe: CWE-89