Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-86730: Improper Control of Generation of Code ('Code Injection') in craftcms cms

0
High
VulnerabilityCVE-2026-86730cvecve-2026-86730
Published: 09/08/2026 (09/08/2026, 15:14:00 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: cms

Description

Craft CMS versions before 5.10.12 fail to properly cleanse string-typed field-layout elements, allowing authenticated control-panel users to inject Yii2 behavior attachments and event handlers. Attackers can post field-layout tab elements as JSON strings to bypass cleanse validation, then trigger arbitrary object instantiation and code execution through Craft::createObject().

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
craftcms/cms
pkg:github/craftcms/cms
Affected versions
=5.0.0-RC1<5.10.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:37:35 UTC

Technical Analysis

CVE-2026-86730 is a code injection vulnerability in Craft CMS affecting versions from 5.0.0-RC1 up to but not including 5.10.12. The flaw arises from improper cleansing of string-typed field-layout elements, which allows authenticated users to inject Yii2 behavior attachments and event handlers. Attackers can submit field-layout tab elements as JSON strings to bypass cleansing validation, leading to arbitrary object instantiation and code execution via Craft::createObject(). The vulnerability has a CVSS 4.0 score of 8.7, indicating high severity, and requires low attack complexity with no user interaction.

Potential Impact

An authenticated user with control-panel access can exploit this vulnerability to execute arbitrary code on the server by injecting malicious Yii2 behavior attachments and event handlers. This could lead to full compromise of the affected Craft CMS instance, including unauthorized actions and potential data breaches.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict control-panel access to trusted users only and monitor for suspicious activity related to field-layout modifications.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-09-08T11:31:09.013Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6aa029bfacd9273b49d8b692

Added to database: 09/08/2026, 15:29:03 UTC

Last enriched: 09/08/2026, 15:37:35 UTC

Last updated: 09/08/2026, 22:32:31 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses