CVE-2026-25496
published 2026-02-09CVE-2026-25496: Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, a stored XSS vulnerability…
PriorityP423medium4.8CVSS 3.1
AVNACLPRHUIRSCCLILAN
EPSS
0.36%
27.9th percentile
Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, 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. This issue is patched in versions 4.16.18 and 5.8.22.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| craftcms | cms | — | — |
| craftcms | cms | — | — |
| craftcms | cms | >= 4.0.0-RC1 < 4.16.18 | 4.16.18 |
| craftcms | cms | >= 5.0.0-RC1 < 5.8.22 | 5.8.22 |
| craftcms | craft_cms | < 4.16.18 | 4.16.18 |
| craftcms | craft_cms | < 5.8.22 | 5.8.22 |
| craftcms | craft_cms | — | — |
| craftcms | craft_cms | — | — |
CVSS provenance
nvdv3.14.8MEDIUMCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
nvdv4.04.8MEDIUMCVSS: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:X/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
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
osv·2026-02-09
CVE-2026-25496 [MEDIUM] Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
## 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. Choose **Number** as the field type
4. Set the **Prefix/Suffix Text** field to:
```html
```
5. Save the field
6. Add this field to an
GHSA
Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
ghsa·2026-02-09
CVE-2026-25496 [MEDIUM] CWE-79 Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields
## 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. Choose **Number** as the field type
4. Set the **Prefix/Suffix Text** field to:
```html
```
5. Save the field
6. Add this field to an
No detection rules found.
No public exploits indexed.
2026-02-09
Published