CVE-2026-25491
JSON

1.9low

Craft has a Stored XSS in Entry Types Name

Severity
1.9low CVSS:4.0 by GitHub_M
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7pr4-wx9w-mqwr

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.

Affected

Product or packageVersionsReported by
craftcms cms>= 5.0.0-RC1, < 5.8.22CVE List
craftcms/cms (Packagist)from 5.0.0-RC1 before 5.8.22GitHub Advisory Database
craftcms craft_cmsfrom 5.0.0 before 5.8.21NVD

All scores

GitHub_M1.9low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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:
<img src=x onerror="alert('XSS-EntryTypes')" hidden>
  1. Save the Entry Type, and you’ll be redirected back to the entry types table automatically.
  2. Notice the alert fires when the entry types table renders.
NVD (es)

Craft es una plataforma para crear experiencias digitales. Desde la 5.0.0-RC1 hasta la 5.8.21, Craft tiene un XSS almacenado a través de los nombres de los tipos de entrada. El nombre no se sanea cuando se muestra en la lista de tipos de entrada. Esta vulnerabilidad está corregida en la 5.8.22.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-25491 changed 2026-02-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-7pr4-wx9w-mqwr changed 2026-02-09CC-BY-4.0
NVDCVE-2026-25491 changed 2026-06-17Public domain