Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-25496

CVE-2026-25496: Craft CMS Vulnerable to Stored XSS in Number Prefix & Suffix Fields

February 9, 2026

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.

References

  • github.com/advisories/GHSA-9f5h-mmq6-2x78
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/cb5fb0e979e72f315c9178fc031883d49527f513
  • github.com/craftcms/cms/releases/tag/4.16.18
  • github.com/craftcms/cms/releases/tag/5.8.22
  • github.com/craftcms/cms/security/advisories/GHSA-9f5h-mmq6-2x78
  • nvd.nist.gov/vuln/detail/CVE-2026-25496

Code Behaviors & Features

Detect and mitigate CVE-2026-25496 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0-RC1 before 4.16.18, all versions starting from 5.0.0-RC1 before 5.8.22

Fixed versions

  • 5.8.22
  • 4.16.18

Solution

Upgrade to versions 4.16.18, 5.8.22 or above.

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/craftcms/cms/CVE-2026-25496.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:48 +0000.