SB2026061666 - Multiple vulnerabilities in Craft CMS



SB2026061666 - Multiple vulnerabilities in Craft CMS

Published: June 16, 2026

Security Bulletin ID SB2026061666
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 4
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 50% Low 50%
  • 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.