MediumGHSA-9f5h-mmq6-2x78
Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
Affected versions
5.0.0-RC1 to before 5.8.22, 4.0.0-RC1 to before 4.16.18 - fixed in 5.8.22Details
## Summary A stored XSS vulnerability exists in the Number field type settings. The Prefix and Suffix fields are rendered using the `|md|raw` Twig filter without proper escaping, allowing script execution when the Number field is displayed on users' profiles. ## Proof of Concept ### Required Permissions - Administrator access - `allowAdminChanges` is enabled in production, which is against our [security recommendations](https://craftcms.com/knowledge-base/securing-craft). ### Steps to Reproduce 1. Log in with an admin account 2. Navigate to **Settings** → **Fields** → **New field** 3. Cho
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-25496
- https://github.com/craftcms/cms/security/advisories/GHSA-9f5h-mmq6-2x78
- https://nvd.nist.gov/vuln/detail/CVE-2026-25496
- https://github.com/craftcms/cms/commit/cb5fb0e979e72f315c9178fc031883d49527f513
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/4.16.18
- https://github.com/craftcms/cms/releases/tag/5.8.22
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected