CVE-2026-109307

Craft CMS 5.0.0 before 5.10.14 DOM XSS via returnUrl in 2FA Verification

Published Oct 12, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a DOM‑based cross‑site scripting flaw in Craft CMS control panel login and two‑factor authentication (2FA) verification. A malicious URL containing a JavaScript payload can be embedded in the returnUrl parameter, and when a 2FA‑enabled user follows that link after entering their password but before confirming a TOTP code, the script executes in the context of the authenticated control panel. Because the code runs with the victim’s permissions, an attacker could deface the panel, steal session data, or inject other malicious content.

Affected Systems

Craft CMS versions from 5.0.0 up to, but not including, 5.10.14 are affected. This includes all releases released before the 5.10.14 patch. The defect resides in the control panel login and verification flow and impacts any user who has 2FA enabled and visits a crafted /admin/login?verify=1 URL. Admin users and anyone who can convince a 2FA user to click such a link are at risk.

Risk and Exploitability

The CVSS score is 2.1, indicating low impact under normal circumstances, and the EPSS value is unavailable so no quantified exploit probability is reported. The flaw is listed in the CISA KEV catalog as not included. Attackers would need to persuade a logged‑in 2FA user to click a specially crafted link; they could embed the payload in email or a web page. Once the victim follows the link, the JavaScript runs with the victim’s authenticated session. The vulnerability is difficult to exploit remotely without victim interaction, but the consequence of successful exploitation is the execution of arbitrary code within the control panel.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Craft CMS to version 5.10.14 or later
  • Ensure that the returnUrl parameter does not allow javascript: URLs in configuration
  • Educate administrators that clicking unfamiliar login links can trigger script execution

Generated by OpenCVE AI on October 12, 2026 at 18:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Craft CMS 5.0.0 before 5.10.14 DOM XSS via returnUrl in 2FA Verification
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-79
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 2:43 AM
Reserved
Oct 12, 2026, 2:14 PM
Status
Awaiting Analysis
Published
Oct 12, 2026, 5:17 PM
Modified
Oct 15, 2026, 8:33 PM