/

CVE-2026-22595

Severity:

HIGH RISK

(8.1)

Authorization Bypass in Ghost CMS Staff Endpoints

CVE-2026-22595

Analyzed

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Privilege Escalation and Unauthorized Administrative Actions

Severity:

HIGH RISK

(8.1)

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

Ghost CMS contained an authorization flaw where Staff Token–based authentication could access endpoints that were intended to require interactive Staff Session authentication.

When external systems used Staff Tokens belonging to Admin/Owner-role users, they could reach privileged staff-only endpoints, expanding their capabilities beyond what token-based access should permit.

Affected context

This vulnerability affects Ghost CMS installations where:

  • Admin/Owner-role users issued Staff Tokens for use by external systems or integrations, and
  • Those tokens were used to call Ghost's administrative APIs.

In these scenarios, some endpoints that were meant to be restricted to browser-based Staff Session authentication were also accessible via Staff Tokens.

The issue is specific to how Ghost differentiated (or failed to differentiate) between token-based and session-based staff authentication for certain routes.

Exploit preconditions

  • Attack surface: Ghost Admin API and related staff endpoints reachable over HTTP/HTTPS.
  • Required access: Possession of a valid Staff Token for an Admin or Owner-level account (typically issued to trusted external systems).
  • Trigger point: Making authenticated API requests with the Staff Token to endpoints that should only accept Staff Session credentials.
  • Why exploitation is possible: The authorization layer did not correctly enforce distinct access rules for Staff Tokens vs. Staff Sessions, allowing token-authenticated requests to be treated as if they had full interactive staff session privileges on certain routes.

Why this happens

The underlying issue is an authorization design flaw that conflates or improperly scopes different authentication mechanisms.

Staff Tokens are intended for programmatic, limited access, while Staff Sessions represent interactive, user-driven access with broader privileges.

In affected versions of Ghost, the access control logic for some endpoints did not adequately check the authentication context (token vs. session), so Staff Tokens—especially those tied to Admin/Owner users—were authorized to reach endpoints that should have required a staff session.

This maps to CWE-863: Incorrect Authorization, where the system authenticates a principal but fails to enforce the intended authorization boundaries between principals or authentication modes.

Potential impact

  • External systems holding Admin/Owner Staff Tokens could perform administrative actions beyond their intended scope.
  • Unauthorized management or modification of site configuration and content may occur.
  • Expansion of attack blast radius if an external integration is compromised, since its token grants access to more endpoints than anticipated.
  • Potential for data exposure from privileged endpoints that should be restricted to interactive staff sessions.
  • Increased risk of full administrative takeover if the token is leaked or misused.

General mitigation guidance

Mitigation centers on designing and enforcing strict separation of privileges between authentication mechanisms and roles:

  • Clearly differentiate authorization policies for Staff Tokens vs. Staff Sessions and enforce them at the routing or middleware layer.
  • Apply least-privilege principles to programmatic credentials: Staff Tokens should map to minimal, well-scoped capabilities rather than inheriting full user privileges.
  • Introduce explicit allowlists/denylists for which endpoints are callable via token-based authentication.
  • Implement contextual checks (e.g., interaction type, token type, session flags) in access control decisions instead of relying solely on user role.
  • Regularly rotate Staff Tokens and avoid binding them directly to the full privileges of Admin/Owner accounts where possible.
  • Document expected capabilities for each authentication method so developers and integrators avoid over-trusting tokens.

How teams detect issues like this

Effective detection focuses on both code-level and runtime indicators:

  • Static analysis and code review:
  • Identify authorization middleware that does not distinguish between token- and session-based authentication.
  • Look for routes that reuse generic "isStaff" checks without considering authentication context or token type.
  • Review any logic that ties Staff Token capabilities directly to user roles without additional scoping.
  • Configuration and policy review:
  • Maintain an inventory of which endpoints are intended to be session-only vs. token-accessible and verify the implementation matches this policy.
  • Runtime monitoring and logging:
  • Log authentication method (token vs. session), user role, and endpoint for each request, and alert on token-based access to endpoints designated as session-only.
  • Monitor external integrations for changes in call patterns that suggest they have gained or are using unexpected privileges.
  • Automated security testing tools and API fuzzers can be configured to exercise endpoints with different authentication modes to surface inconsistent authorization behavior.

Sources

SourceLink
github.comgithub.com/TryGhost/Ghost/commit/9513d2a35c21067127ce8192443d8919ddcefcc8
github.comgithub.com/TryGhost/Ghost/commit/c3017f81a5387b253a7b8c1ba1959d430ee536a3
github.comgithub.com/TryGhost/Ghost/security/advisories/GHSA-9xg7-mwmp-xmjx

Frequently asked

questions

Yes, but only by parties that possess a valid Staff Token. If an attacker can obtain such a token (for example, by compromising an external integration, CI system, or configuration repository), they can remotely call privileged endpoints that were meant to be session-only.

The attacker needs access to a Staff Token tied to an Admin or Owner-level user. Without such a token, the vulnerability cannot be triggered. The flaw expands what a valid token can do rather than allowing anonymous access.

Implement explicit, context-aware authorization checks that distinguish between authentication types. Define which endpoints may accept Staff Tokens and enforce that list in code, ensuring that session-only routes reject token-based authentication regardless of user role.

Design authentication and authorization with clear separation of concerns: treat tokens, sessions, and other credential types as distinct principals with their own scoped permissions. Formalize access control policies, enforce least privilege for programmatic access, and include authorization mode checks in code review, automated tests, and security tooling.

Find out what's already
exploitable in your codebase.