Cross-site scripting in Craft CMS - CVE-2026-31859
Published: June 16, 2026
Craft CMS
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.
The vulnerability exists due to cross-site scripting in return URL handling in src/web/User.php when rendering a sanitized return URL in an href attribute. A remote attacker can supply a specially crafted return URL using a javascript: scheme to execute arbitrary script in the victim's browser.