/

CVE-2026-124427

Severity:

CRITICAL RISK

(9.8)

Authorization Bypass (CWE-862) in Craft CMS GraphQL API

CVE-2026-124427

Awaiting Analysis

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-862

Impact:

Unauthorized disclosure of content

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Craft CMS has an authorization bypass in GraphQL prev and next fields that can let anonymous clients navigate from visible entries to entries in withheld sections. Depending on the exposed fields and configuration, this may disclose titles, slugs, and custom-field content that should be out of scope.

Affected context

The issue affects Craft CMS versions from 5.0.0 up to, but not including, 5.11.2 when GraphQL clients can query entry navigation fields. The risk arises when prev or next navigation can cross section boundaries without applying the same access controls used to restrict entry visibility.

Exploit preconditions

  • Attack surface: GraphQL entry queries that expose prev or next fields
  • Required access: No authentication is required when the relevant GraphQL endpoint is available to anonymous clients
  • Trigger point: Resolving navigation fields for an in-scope entry
  • Why exploitation is possible: Navigation can return entries from withheld sections without consistently enforcing authorization

Why this happens

The underlying issue is a failure to enforce authorization when resolving related entries through GraphQL navigation fields. This maps to CWE-862: Missing Authorization: access checks applied to the original entry are not adequately applied to entries reached through prev or next relationships.

Potential impact

  • Anonymous clients may read titles and slugs from withheld entries.
  • Custom-field content may be disclosed if it is exposed through the GraphQL schema.
  • Repeated navigation across entries could enable broader enumeration of restricted content.

General mitigation guidance

Defensive patterns include enforcing authorization consistently at every GraphQL resolver and relationship-navigation boundary, rather than relying only on checks for the initial entry. Restrict anonymous access to sensitive content and fields by default, minimize the data exposed in public schemas, and apply least privilege to GraphQL clients. Treat navigation results as untrusted until their section and entry-level access policies have been checked.

How teams detect issues like this

Review GraphQL resolvers for authorization checks on related or navigated-to records, especially prev and next fields. Test anonymous queries against entries in both permitted and withheld sections, and verify that schema and policy rules prevent cross-section disclosure. Static analysis or automated security reviews can help flag resolver paths that return records without access-control enforcement.

Sources

SourceLink
github.comgithub.com/craftcms/cms/security/advisories/GHSA-xpg7-m6gm-4xfh
vulncheck.comvulncheck.com/advisories/craft-cms-5.0.0-before-5.11.2-graphql-schema-scope-bypass-via-prev-next

Frequently asked

questions

Anonymous GraphQL clients may be able to exploit it when the endpoint exposes the affected navigation fields and access restrictions are not enforced on the returned entries.

Not necessarily. The reported scenario involves anonymous clients; actual exposure depends on the endpoint's availability and configuration.

Enforce the applicable authorization policy whenever a resolver returns an entry, including entries reached through navigation fields.

Apply access controls consistently across GraphQL resolvers, limit public schema exposure, and test relationship and navigation queries against restricted content.

Find out what's already
exploitable in your codebase.