CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-WG23-69C2-GJC8

GHSA-WG23-69C2-GJC8: Passkey Login Replay Vulnerability in Craft CMS

Alon Barad
Alon Barad
Software Engineer

Aug 7, 2026·6 min read·24 visits

Executive Summary (TL;DR)

Craft CMS native Passkey authentication fails to securely validate challenge options and discard/update the signature counter, allowing complete authentication bypass via captured request replay.

GHSA-WG23-69C2-GJC8 is a critical security vulnerability discovered in the native Passkey (WebAuthn) login implementation of Craft CMS. The vulnerability allows an attacker to bypass WebAuthn's core cryptographic challenge-response and signature-counter replay protections. By intercepting a single successful passkey login request body, an attacker can replay the identical request payload to generate additional authenticated active sessions, resulting in complete account takeover.

Vulnerability Overview

Craft CMS versions 5.0.0-RC1 through 5.10.4.1 contain an authentication bypass vulnerability within the native Passkey (WebAuthn) login implementation. This flaw allows an attacker to reuse a captured WebAuthn authentication assertion to establish unauthorized sessions. The vulnerability represents a failure to enforce core WebAuthn security specifications on the server side.

The vulnerable component resides in the core authentication handling logic, specifically within the controller and service classes responsible for validating WebAuthn assertions. Under normal conditions, WebAuthn relies on strict cryptographic challenge-response mechanisms and monotonically increasing counters to prevent replay attacks. These protections ensure that each login assertion is unique and used exactly once.

Due to implementation errors in Craft CMS, both the session challenge validation and the signature counter tracking were rendered ineffective. Consequently, any attacker capable of intercepting a valid passkey authentication request can replay the payload to achieve full account takeover. The flaw requires no special privileges and bypasses standard multi-factor authentication controls.

Root Cause Analysis

The vulnerability is a classic representation of CWE-294 (Authentication Bypass by Capture-replay) and is caused by two distinct software design failures. First, the application's passkey login controller deserialized the cryptographic challenge options directly from the client's unauthenticated HTTP request body. It did not verify them against a server-side session variable.

By trusting the client-supplied requestOptions parameter, the application allowed an attacker to supply a historic challenge value alongside a historic signature. The server validated the signature against the self-supplied challenge within the request, neutralizing the security guarantee of the challenge-response mechanism. This eliminated the temporal uniqueness constraint required by WebAuthn.

Second, the application failed to persist the updated signature counter (signCount) returned by the WebAuthn validation library. While the library successfully verified the assertion and returned an updated credential source object with an incremented counter, the application discarded this returned object. As a result, the database copy of the signature counter remained permanently static, rendering clone detection and replay prevention checks non-functional.

Code Analysis

The execution flow for the vulnerability involves the controller extracting client parameters and passing them directly to the verification service. The diagram below illustrates how the validation checks succeed despite using replayed data.

The vulnerable controller code in src/controllers/UsersController.php extracted the challenge options directly from the POST request body:

// Vulnerable: Reads challenge options from client request
$requestOptions = $this->request->getRequiredBodyParam('requestOptions');

The patch resolves this by reading the challenge parameters directly from the user's secure session and deleting the variable to prevent subsequent reuse:

// Patched: Extracts and removes options from server-side session
$requestOptions = SessionHelper::remove(Craft::$app->getAuth()->passkeyRequestOptionsParam);
if (!$requestOptions) {
    return $this->asFailure(Craft::t('app', 'Passkey authentication failed.'));
}

In src/services/Auth.php, the verification function initially verified the key but failed to capture or persist the updated key source:

// Vulnerable: Output of check() containing updated counter is discarded
$this->webauthnServer()->getAuthenticatorAssertionResponseValidator()->check(
    $publicKeyCredentialSource,
    $authenticatorAssertionResponse,
    $publicKeyCredentialRequestOptions,
    Craft::$app->getRequest()->getHostName(),
    $userEntity->id,
);

The patched service captures the output and caches it in the session temporarily:

// Patched: Captures and caches the updated credential source
$updatedPublicKeyCredentialSource = $this->webauthnServer()->getAuthenticatorAssertionResponseValidator()->check(
    $publicKeyCredentialSource,
    $authenticatorAssertionResponse,
    $publicKeyCredentialRequestOptions,
    Craft::$app->getRequest()->getHostName(),
    $userEntity->id,
);
SessionHelper::set($this->passkeyCredSourceParam, $updatedPublicKeyCredentialSource);

Finally, src/elements/User.php retrieves the updated source from the session and commits the new signature counter to the database:

// Patched: Commits the new counter to the repository
$updatedPublicKeyCredentialSource = Session::remove($authService->passkeyCredSourceParam);
$authService->webauthnServer()->getCredentialRepository()->saveCredentialSource($updatedPublicKeyCredentialSource);

Exploitation Methodology

Exploiting this vulnerability requires the interception of a single valid Passkey authentication payload. An attacker must monitor or retrieve the raw HTTP request body transmitted during a legitimate user's login sequence to /actions/users/login-with-passkey. This can be achieved through network monitoring, server log exposure, or client-side compromise.

Once the payload is captured, the attacker can replay the identical JSON request body to the target application. Because the application uses the request's own client-supplied challenge options, the cryptographic verification succeeds. The server assumes the assertion is fresh because it is matched against the accompanying replayed challenge.

Because the application does not persist the updated signature counter, the server-side validator compares the replayed counter against a static database value. This allows the request to bypass both WebAuthn challenge verification and signature-counter freshness checks. The server then generates a new session cookie for the attacker, resulting in immediate session takeover.

Impact Assessment

The impact of this vulnerability is classified as critical, carrying a CVSS v4 score of 9.1. An attacker who successfully replays a captured assertion gains full access to the target user account, which may include administrative privileges depending on the compromised user's role. This bypasses the multi-factor authentication guarantees typically provided by physical security keys.

This vulnerability undermines the primary security assumption of WebAuthn and Passkeys, which are designed to resist replay and credential-harvesting attacks. If passkey authentication is the primary factor of authentication, the bypass allows direct administrative access to the Craft CMS control panel.

With administrative access, an attacker can modify template files, execute arbitrary code via server configuration parameters, extract database contents, or completely deface the hosted web application. The lack of a corresponding CVE does not minimize the severity of this flaw, as it represents a complete authentication failure within a core identity component.

Remediation and Mitigation

The primary remediation path is upgrading the Craft CMS framework to version 5.10.5 or later. Administrators can perform this update via Composer by running the command composer update craftcms/cms --with-dependencies inside their root project directory.

If an immediate upgrade is not possible, administrators should disable the native Passkey (WebAuthn) login feature within the application's authentication configuration. This restricts users to standard password-based login or alternative multi-factor authentication methods that do not rely on the vulnerable WebAuthn wrapper.

Security teams can detect potential historical exploitation by querying the database table webauthnrecords. A signature counter that remains static across multiple successful login events for a single passkey indicates that the vulnerable code path was executed without updating the state.

Official Patches

Craft CMSOfficial patch fixing Passkey verification and session state usage.

Fix Analysis (1)

Technical Appendix

CVSS Score
9.1/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected Systems

Craft CMS installations utilizing native Passkey (WebAuthn) authentication

Affected Versions Detail

Product
Affected Versions
Fixed Version
craftcms/cms
Craft CMS
>= 5.0.0-RC1, < 5.10.55.10.5
AttributeDetail
CWE IDCWE-294
Attack VectorNetwork (AV:N)
CVSS v4 Score9.1 (Critical)
Exploit StatusPoC / Known Mechanics
ImpactAuthentication Bypass / Account Takeover

MITRE ATT&CK Mapping

T1556Modify Authentication Process
Credential Access
T1212Exploitation for Credential Access
Credential Access
T1563Subvert Active Sessions
Lateral Movement
CWE-294
Authentication Bypass by Capture-replay

The application receives sensitive authentication credentials and accepts them on subsequent requests without sufficient validation of freshness or uniqueness.

Known Exploits & Detection

GitHub Security AdvisoryInformation regarding verification of passkey assertions and signature counter handling.

Vulnerability Timeline

Craft CMS 5.0 is released, introducing native Passkey (WebAuthn) authentication support.
2024-05-01
GHSA-wg23-69c2-gjc8 is published to the GitHub Advisory Database after coordinated disclosure.
2026-08-07
Craft CMS releases version 5.10.5 containing the patch.
2026-08-07

References & Sources

  • [1]GHSA-WG23-69C2-GJC8: Craft CMS Passkey Login Replay Vulnerability
  • [2]Craft CMS Fix Commit
  • [3]Craft CMS Release 5.10.5
  • [4]Craft CMS Repository

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•19 minutes ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
1 views•10 min read
•about 4 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 5 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 6 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 7 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 8 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read