Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-25495
February 09, 2026
Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, the element-indexes/get-elements endpoint is vulnerable to SQL Injection via the criteria[orderBy] parameter (JSON body). The application fails to sanitize this input before using it in the database query. An attacker with Control Panel access can inject arbitrary SQL into the ORDER BY clause by omitting viewState[order] (or setting both to the same payload). This issue is patched in versions 4.16.18 and 5.8.22.
Affected Packages
https://github.com/craftcms/cms.git (GITHUB):
Affected version(s) >=5.0.0 <5.8.22
Fix Suggestion:
Update to version 5.8.22
https://github.com/craftcms/cms.git (GITHUB):
Affected version(s) >=4.0.0 <4.16.18
Fix Suggestion:
Update to version 4.16.18
craftcms/cms (PHP):
Affected version(s) >=5.0.0-RC1 <5.8.22
Fix Suggestion:
Update to version 5.8.22
craftcms/cms (PHP):
Affected version(s) >=4.0.0-RC1 <4.16.18
Fix Suggestion:
Update to version 4.16.18
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.01