SB2026061666 - Multiple vulnerabilities in Craft CMS
Published: June 16, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) SQL injection (CVE-ID: CVE-2026-31858)
CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to SQL injection in the ElementSearchController::actionSearch() endpoint when handling crafted query properties. A remote user can inject arbitrary SQL via criteria[where], criteria[orderBy], or other query properties to disclose sensitive information.
The issue is exploitable through boolean-based blind injection, and no administrative privileges are required.
2) Code Injection (CVE-ID: CVE-2026-31857)
CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')
CVSSv4: 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:U/U:Green
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper neutralization of user-controlled input in BaseElementSelectConditionRule::getElementIds() when processing crafted condition rules through standard element listing endpoints. A remote user can send a specially crafted condition rule to execute arbitrary code.
The issue affects the control panel conditions system and can be exploited by non-admin roles such as Author or Editor.
3) Cross-site request forgery (CVE-ID: CVE-2026-29113)
CWE-ID: CWE-352 - Cross-Site Request Forgery (CSRF)
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper access control in the preview token endpoint when handling crafted cross-site requests to create preview tokens. A remote attacker can trick a logged-in victim into sending a crafted request to disclose sensitive information.
Exploitation requires the victim to be logged in and have active preview authorization in session for the targeted content.
4) Cross-site scripting (CVE-ID: CVE-2026-31859)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Green
The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.
The vulnerability exists due to cross-site scripting in return URL handling in src/web/User.php when rendering a sanitized return URL in an href attribute. A remote attacker can supply a specially crafted return URL using a javascript: scheme to execute arbitrary script in the victim's browser.
Remediation
Install update from vendor's website.
References
- https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8
- https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42
- https://github.com/craftcms/cms/security/advisories/GHSA-fp5j-j7j4-mcxc
- https://github.com/craftcms/cms/commit/8d4903647dcfd31b8d40ed027e27082013347a80
- https://github.com/craftcms/cms/security/advisories/GHSA-vg3j-hpm9-8v5v
- https://github.com/craftcms/cms/commit/6a88468dc35a27cccc8fef254f415a447d4a07cc
- https://github.com/craftcms/cms/security/advisories/GHSA-fvwq-45qv-xvhv