{"id":"CVE-2026-25491","aliases":["CVE-2026-25491","GHSA-7pr4-wx9w-mqwr"],"related":[],"kind":"vulnerability","state":"published","title":"Craft has a Stored XSS in Entry Types Name","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nStored XSS via Entry Type names. The name is not sanitized when displayed in the Entry Types list.\n\n---\n## Proof of Concept\n\n### Required Permissions (Attacker)\n\n- Admin access (only admins have access to the settings page)\n- `allowAdminChanges` is enabled in production, which is against our [security recommendations](https://craftcms.com/knowledge-base/securing-craft).\n\n### Steps to Reproduce\n1. Log in as an attacker.\n2. Go to **Settings** -> **Entry Types** (`/admin/settings/entry-types`).\n3. Create a new Entry Type.\n4. Set **Name** to:\n```html\n<img src=x onerror=\"alert('XSS-EntryTypes')\" hidden>\n```\n5. Save the Entry Type, and you’ll be redirected back to the entry types table automatically.\n6. Notice the alert fires when the entry types table renders.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-02-09T19:25:29.690Z","modified":"2026-06-17T10:24:43.763Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS: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","score":1.9,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS: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","score":1.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS: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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 5.0.0-RC1, < 5.8.22","status":"affected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.8.22"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.0.0","fixed":"5.8.21"}],"vendor":"craftcms","product":"craft_cms","cpe":"cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-7pr4-wx9w-mqwr","tags":["exploit","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/cfd6ba0e2ce1a59a02d75cae6558c4ace1ab8bd4","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.8.22","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25491","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-10T15:30:22.541Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25491","url":"https://www.cve.org/CVERecord?id=CVE-2026-25491","licence":"CVE Terms of Use","modified":"2026-02-10T16:00:46.911Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7pr4-wx9w-mqwr","url":"https://github.com/advisories/GHSA-7pr4-wx9w-mqwr","licence":"CC-BY-4.0","modified":"2026-02-09T22:56:19.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25491","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25491","licence":"Public domain","modified":"2026-06-17T10:24:43.763Z"}],"updatedAt":"2026-11-25T22:59:13.667Z","epss":{"score":0.00353,"percentile":0.30918,"date":"2026-12-01T12:00:22.000Z"}}