craftcms/cms
Affected
- introduced
5.0.0-RC1, fixed5.8.22(ecosystem)
Fixed versions
5.8.22
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-25496
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
allowAdminChanges is enabled in production, which is against our security recommendations.Steps to Reproduce
<img src=x onerror="alert('Number Prefix/Suffix XSS')" hidden>
/admin/myaccount) or any user profile (/admin/users/{id})Mitigation
Sanitize prefix/suffix before rendering or use |e filter instead of |raw.
Medium Basis: The source's own band: MODERATE
5.0.0-RC1, fixed 5.8.22 (ecosystem)5.8.22
The export has no generic command for this ecosystem.
4.0.0-RC1, fixed 4.16.18 (ecosystem)4.16.18
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0