GHSA-7PR4-WX9W-MQWR
Vulnerability from github – Published: 2026-02-09 20:35 – Updated: 2026-02-09 22:38
VLAI
Summary
Craft CMS Vulnerable to Stored XSS in Entry Types Name
Details
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.
Severity
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 5.8.21"
},
"package": {
"ecosystem": "Packagist",
"name": "craftcms/cms"
},
"ranges": [
{
"events": [
{
"introduced": "5.0.0-RC1"
},
{
"fixed": "5.8.22"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-25491"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2026-02-09T20:35:10Z",
"nvd_published_at": "2026-02-09T20:15:57Z",
"severity": "LOW"
},
"details": "## 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** -\u003e **Entry Types** (`/admin/settings/entry-types`).\n3. Create a new Entry Type.\n4. Set **Name** to:\n```html\n\u003cimg src=x onerror=\"alert(\u0027XSS-EntryTypes\u0027)\" hidden\u003e\n```\n5. Save the Entry Type, and you\u2019ll be redirected back to the entry types table automatically.\n6. Notice the alert fires when the entry types table renders.",
"id": "GHSA-7pr4-wx9w-mqwr",
"modified": "2026-02-09T22:38:18Z",
"published": "2026-02-09T20:35:10Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/craftcms/cms/security/advisories/GHSA-7pr4-wx9w-mqwr"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-25491"
},
{
"type": "WEB",
"url": "https://github.com/craftcms/cms/commit/cfd6ba0e2ce1a59a02d75cae6558c4ace1ab8bd4"
},
{
"type": "PACKAGE",
"url": "https://github.com/craftcms/cms"
},
{
"type": "WEB",
"url": "https://github.com/craftcms/cms/releases/tag/5.8.22"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "Craft CMS Vulnerable to Stored XSS in Entry Types Name"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…