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.
Published: 2026-10-12
Score: 2.1 Low
EPSS: < 1% Very Low
KEV: No
Impact: DOM‑based Cross‑Site Scripting
Action: Apply Patch
AI Analysis

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.

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

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 yet.

History

Thu, 15 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 12 Oct 2026 16:30:00 +0000

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'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T02:43:02.789Z

Reserved: 2026-10-12T14:14:27.020Z

Link: CVE-2026-109307

cve-icon Vulnrichment

Updated: 2026-10-15T02:42:59.260Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-12T17:17:25.077

Modified: 2026-10-15T20:33:06.527

Link: CVE-2026-109307

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-12T19:00:07Z

Weaknesses
  • CWE-79

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