Craft CMS Stored Cross-Site Scripting Vulnerability in Entry Type Names

Vulnerability

A stored cross-site scripting vulnerability has been identified in Craft CMS versions 5.0.0-RC1 prior to 5.8.21. The issue arises because Entry Type names are not properly sanitized before being displayed in the Entry Types list, allowing for the injection of malicious scripts.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the Entry Types list.

Reproduction

To reproduce this vulnerability, log in as an admin user with 'allowAdminChanges' enabled in production. Navigate to the Entry Types settings page, create a new Entry Type, and enter a name that includes a script injection, such as an image tag with an 'onerror' event. After saving the Entry Type, the injected script will execute when the Entry Types table is rendered.

Remediation

Users can upgrade to Craft CMS version 5.8.22 or later to address this vulnerability.

Added: Feb 9, 2026, 8:26 PM
Updated: Feb 9, 2026, 10:26 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
5.4
exploitability
6.3
remediation
7.7
relevance
2.6
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.