CVE-2026-109307: Craft CMS 5.0.0 before 5.10.14 DOM XSS via returnUrl in 2FA Verification
Craft CMS 5.0.0 before 5.10.14 contains a DOM-based cross-site scripting vulnerability in the control panel login and 2FA verification flow, where a user-controlled returnUrl accepting javascript: URLs is used in client-side navigation. Attackers can lure a 2FA-enabled victim into opening a crafted /admin/login?verify=1 URL between password submission and TOTP verification, executing JavaScript in the authenticated control panel with the victim's permissions.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Craft CMSto a version that resolves this vulnerability.Fixed in 5.10.14
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Craft CMS installations running versions from 5.0.0 before 5.10.14 are exposed when a control-panel user has 2FA enabled. Exploitation targets a victim during the interval between password submission and TOTP verification.
What does an attacker need to exploit it?
The attacker does not need prior privileges, but must convince a 2FA-enabled victim to open a crafted /admin/login?verify=1 URL during the login and 2FA verification flow. Successful exploitation requires user interaction and executes JavaScript with the victim's authenticated control-panel permissions.
What is the remediation?
Update Craft CMS to version 5.10.14 or later. The affected range is Craft CMS 5.0.0 before 5.10.14.