CVE-2026-25496 Craft has a stored XSS in Number Prefix & Suffix Fields
Stored XSS in Craft CMS Number field settings allows script execution on user profiles via unescaped prefix and suffix fields.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-25496?
CVE-2026-25496 is a medium-severity cross-site scripting vulnerability in Craftcms Craft Cms, published on 9 Feb 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2026-25496?
4 open source packages ship an affected version, including craftcms/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | From 4.0.0-RC1 | 4.16.18 |
craftcms/cms Packagist | From 4.0.0-RC1 | 4.16.18 |
craftcms/cms Packagist | From 5.0.0-RC1 | 5.8.22 |
craftcms/cms Packagist | From 5.0.0-RC1 | 5.8.22 |
Products include Craftcms Craft Cms.
How do I fix CVE-2026-25496?
Upgrade craftcms/cms to a fixed version for your release line: 4.16.18 or 5.8.22.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-25496 being exploited?
There is no known exploitation of CVE-2026-25496 in the wild and no public exploit code.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as CLSA-2026-1783904621, GHSA-9f5h-mmq6-2x78.