CVE-2026-25491: Craft has a Stored XSS in Entry Types Name

Published Feb 9, 2026
·
Updated

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) - allowAdminChanges is enabled in production, which is against our security recommendations.

Steps to Reproduce 1. Log in as an attacker. 2. Go to Settings -> Entry Types (/admin/settings/entry-types). 3. Create a new Entry Type. 4. Set Name to: html <img src=x onerror="alert('XSS-EntryTypes')" hidden> 5. Save the Entry Type, and you’ll be redirected back to the entry types table automatically. 6. Notice the alert fires when the entry types table renders.

Other sources

Craft is a platform for creating digital experiences. From 5.0.0-RC1 to 5.8.21, Craft has a stored XSS via Entry Type names. The name is not sanitized when displayed in the Entry Types list. This vulnerability is fixed in 5.8.22.

MITRE

Affected Software

3 affected componentsFixes available
Craft Craft>=5.0.0-RC1<5.8.21
composer/craftcms/cms>=5.0.0-RC1<=5.8.21
5.8.22
CraftCMS Craft CMS>=5.0.0<5.8.21

Event History

Feb 9, 2026
CVE Published
via MITRE·07:25 PM
Data Sourced
via MITRE·07:25 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyAffected Software
Advisory Published
via GitHub·08:35 PM
Data Sourced
via GitHub·08:35 PM
DescriptionWeaknessAffected Software
Aug 19, 58109
Event
via FIRST·04:59 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-25491?

CVE-2026-25491 has a high severity due to its nature as a Stored XSS vulnerability.

2

How do I fix CVE-2026-25491?

To fix CVE-2026-25491, upgrade Craft to version 5.8.22 or later.

3

What versions of Craft are affected by CVE-2026-25491?

Craft versions from 5.0.0-RC1 to 5.8.21 are affected by CVE-2026-25491.

4

What type of vulnerability is CVE-2026-25491?

CVE-2026-25491 is categorized as a Stored Cross-Site Scripting (XSS) vulnerability.

5

How does CVE-2026-25491 impact users?

CVE-2026-25491 allows attackers to execute malicious scripts in the context of authenticated users through unvalidated Entry Type names.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203