GHSA-7pr4-wx9w-mqwrLow
Craft CMS Vulnerable to Stored XSS in Entry Types Name
🔗 CVE IDs covered (1)
📋 Description
Summary
Stored XSS via Entry Type names. The name is not sanitized when displayed in the Entry Types list.
Proof of Concept
Required Permissions (Attacker)
- Admin access (only admins have access to the settings page)
allowAdminChangesis enabled in production, which is against our security recommendations.
Steps to Reproduce
- Log in as an attacker.
- Go to Settings -> Entry Types (
/admin/settings/entry-types). - Create a new Entry Type.
- Set Name to:
<img src=x onerror="alert('XSS-EntryTypes')" hidden>
- Save the Entry Type, and you’ll be redirected back to the entry types table automatically.
- Notice the alert fires when the entry types table renders.
🎯 Affected products1
- composer/craftcms/cms:>= 5.0.0-RC1, <= 5.8.21