Reflected XSS Vulnerability in Craft Content Management System
CVE-2026-31859
6.9MEDIUM
What is CVE-2026-31859?
A reflected XSS vulnerability has been identified in Craft CMS due to improper URL sanitization. The issue arises from a strip_tags() function implemented to filter return URLs, which only removes HTML tags and fails to address URL schemes. Consequently, malicious payloads can be executed, allowing attackers to inject JavaScript into return URLs that are rendered within href attributes, potentially compromising user sessions and sensitive information.
Affected Version(s)
cms >= 4.15.3, < 4.17.3 < 4.15.3, 4.17.3
cms >= 5.7.5, < 5.9.7 < 5.7.5, 5.9.7
