{"id":"CVE-2026-25496","published":"2026-02-09T19:45:19Z","modified":"2026-02-10T16:00:13Z","title":"Craft has a stored XSS in Number Prefix & Suffix Fields","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00471,"percentile":0.32979,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-9f5h-mmq6-2x78","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/commit/cb5fb0e979e72f315c9178fc031883d49527f513","tags":["x_refsource_MISC"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.8.22","tags":["x_refsource_MISC"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":6.6},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0-RC1, < 5.8.22",">= 4.0.0-RC1, < 4.16.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-10T15:30:19.770435Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.0.0-RC1, <5.8.22",">=4.0.0-RC1, <4.16.18"],"patched":["5.8.22","4.16.18"],"from":["GHSA-9f5h-mmq6-2x78"],"provenance":"source"}],"summary":{"text":"Craft CMS (the cms product) contains a stored cross-site scripting flaw in the Prefix and Suffix settings of its Number field type, where these values are rendered through a Twig filter without proper escaping. An attacker with high-privilege authenticated access to configure Number fields, and with a victim user interacting with the affected page, can have script execution when the Number field is displayed on users' profiles.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:13Z"},"euvd":{"id":"EUVD-2026-6845","exploited":false,"provenance":"source"}}