CVE-2026-25491 Craft has a Stored XSS in Entry Types Name
Attackers can inject malicious scripts via Entry Type names in Craft CMS, potentially compromising user sessions or site integrity.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-25491?
CVE-2026-25491 is a low-severity cross-site scripting vulnerability in Craftcms Craft Cms, published on 9 Feb 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2026-25491?
2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | From 5.0.0-RC1 | 5.8.22 |
craftcms/cms Packagist | From 5.0.0-RC1 | 5.8.22 |
Products include Craftcms Craft Cms.
How do I fix CVE-2026-25491?
Upgrade craftcms/cms to 5.8.22 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-25491 being exploited?
There is no known exploitation of CVE-2026-25491 in the wild and no public exploit code.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as GHSA-7pr4-wx9w-mqwr.