Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-pgm4-svq8-tfc5
Summary
CraftCMS's `ElementSearchController` Affected by Blind SQL Injection
The `ElementSearchController::actionSearch()` endpoint is missing the `unset()` protection that
was added to ElementIndexesController in [GHSA-2453-mppf-46cj](https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj).

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.
Aliases
0
alias CVE-2026-31858
1
alias GHSA-g7j6-fmwx-7vp8
Fixed_packages
0
url pkg:composer/craftcms/cms@5.9.9
purl pkg:composer/craftcms/cms@5.9.9
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@5.9.9
Affected_packages
0
url pkg:composer/craftcms/cms@5.0.0-RC1
purl pkg:composer/craftcms/cms@5.0.0-RC1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-1468-4fdx-kbfr
1
vulnerability VCID-1mb5-28xp-ckd2
2
vulnerability VCID-39ct-cg7w-kyb6
3
vulnerability VCID-4wkr-jx1w-77hn
4
vulnerability VCID-5cxe-tjpb-3qan
5
vulnerability VCID-5mnd-qvaq-k3am
6
vulnerability VCID-5q5g-jrxm-eyhe
7
vulnerability VCID-71sv-62m4-z3er
8
vulnerability VCID-7y4f-ef7t-47eb
9
vulnerability VCID-8u2j-17a4-q7eh
10
vulnerability VCID-9enr-b6zd-mbh8
11
vulnerability VCID-a3b5-pwyh-yugv
12
vulnerability VCID-akrv-yqnf-1kg8
13
vulnerability VCID-azr5-12f8-hfbm
14
vulnerability VCID-c2nk-y4rx-1qf4
15
vulnerability VCID-cys8-jnmu-77ec
16
vulnerability VCID-esma-wxje-eqh3
17
vulnerability VCID-fpea-e48p-kfbn
18
vulnerability VCID-h6t5-pdp5-8qhe
19
vulnerability VCID-hkp9-3hzv-quhk
20
vulnerability VCID-hyct-5gap-7kdu
21
vulnerability VCID-jeyh-3jxd-z3g6
22
vulnerability VCID-jsfs-azcs-mfcm
23
vulnerability VCID-jxz8-g6fq-dubw
24
vulnerability VCID-kbrc-85av-nfcn
25
vulnerability VCID-m5rf-usae-yfb7
26
vulnerability VCID-pgm4-svq8-tfc5
27
vulnerability VCID-ppet-ruae-1kav
28
vulnerability VCID-qq68-3j4y-47am
29
vulnerability VCID-qywv-vf4r-8bh9
30
vulnerability VCID-r5hp-5nju-9ubz
31
vulnerability VCID-rb7c-3nkc-gkeg
32
vulnerability VCID-twuy-wzb7-k7g3
33
vulnerability VCID-vasz-rnn1-67ev
34
vulnerability VCID-vvhc-rnpr-ubey
35
vulnerability VCID-w9yn-1573-hyau
resource_url http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@5.0.0-RC1
References
0
reference_url https://github.com/craftcms/cms
reference_id
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/craftcms/cms
1
reference_url https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42
reference_id
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42
2
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-31858
reference_id CVE-2026-31858
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-31858
3
reference_url https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj
reference_id GHSA-2453-mppf-46cj
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj
4
reference_url https://github.com/advisories/GHSA-g7j6-fmwx-7vp8
reference_id GHSA-g7j6-fmwx-7vp8
reference_type
scores
url https://github.com/advisories/GHSA-g7j6-fmwx-7vp8
5
reference_url https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8
reference_id GHSA-g7j6-fmwx-7vp8
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8
Weaknesses
0
cwe_id 89
name Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
description The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
2
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
Exploits
Severity_range_score7.0 - 8.9
Exploitability0.5
Weighted_severity8.0
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-pgm4-svq8-tfc5