Skip to main content
VulnerabilityPublished

CVE-2026-25496: craftcms cms · Cross-site Scripting

Affects craftcms cmsSource CVE Database V5

0

Not known to be exploited · CVSS 4.8 Medium : upgrade to 5.8.22 or 4.16.18 when convenient.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 4.0 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.8.22, 4.16.18
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade craftcms cms to 5.8.22 or 4.16.18.

Affected software

ProductAffectedFixed in
craftcmscmsAffected
  • >=5.0.0-RC1 <5.8.22
Fixed in
  • 5.8.22
craftcmscmsAffected
  • >=4.0.0-RC1 <4.16.18
Fixed in
  • 4.16.18

AI-suggested

  1. Upgrade Craft CMS installations to versions 4.16.18 or 5.8.22 or later, where the vulnerability is patched.
  2. Implement strict input validation on the Prefix and Suffix fields to reject or sanitize any potentially malicious input before storage.
  3. Avoid using the raw Twig filter for rendering user-controllable input; instead, use proper escaping mechanisms provided by Twig to neutralize scripts.
  4. Conduct regular security audits and code reviews focusing on template rendering and input handling.
  5. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers.
  6. Monitor web application logs and user reports for suspicious activities indicative of XSS exploitation attempts.
  7. Educate developers and content managers about secure handling of user input and the risks of stored XSS.
  8. If immediate patching is not feasible, consider disabling or restricting the use of the Number field type settings that utilize Prefix and Suffix fields until patched.

Description

CVE-2026-25496 is a stored Cross-Site Scripting (XSS) vulnerability affecting Craft CMS versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21. The issue arises because the Prefix and Suffix fields in the Number field type settings are rendered using the raw Twig filter without proper escaping, allowing malicious scripts to execute when these fields are displayed on user profiles.

References

Community reviews

Loading reviews…