6.9

CVE-2026-31859: craftcms cms Cross-site Scripting

CVSS: 6.9v4.0MediumAnalyzed
Published 11-03-2026Last modified 12-03-2026

Vulnerability summary

CVE-2026-31859 is a medium (CVSS 6.9) Cross-site Scripting vulnerability in craftcms cms. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 17% of scored vulnerabilities.

Overall risk
28/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.9/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.26%
0%100%
Low · +0.08 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 11-03-2026
    PublishedVulnerability first disclosed.
  2. 12-03-2026
    Last modifiedVulnerability information updated.

Description

Craft is a content management system (CMS). The fix for CVE-2025-35939 in craftcms/cms introduced a strip_tags() call in src/web/User.php to sanitize return URLs before they are stored in the session. However, strip_tags() only removes HTML tags (angle brackets) -- it does not inspect or filter URL schemes. Payloads like javascript:alert(document.cookie) contain no HTML tags and pass through strip_tags() completely unmodified, enabling reflected XSS when the return URL is rendered in an href attribute. This vulnerability is fixed in 5.9.7 and 4.17.3.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.26%

Chance of exploitation in the next 30 days

Percentile

17%

Versus all other CVEs

30-day change

+0.08 pp

From 0.18% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.26%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Craftcms2 products
  • cms≥ 4.15.3, < 4.17.3 | ≥ 5.7.5, < 5.9.7
  • craft_cms≥ 4.15.3, < 4.17.3 | ≥ 5.7.5, < 5.9.7

1 vendor · 2 products

References

1 links