Aug 5, 2026·6 min read·2 visits
Unauthenticated users can bypass UI-level status checks to redeem archived promotional discount offers, resulting in unauthorized pricing discounts during membership checkout.
A business logic vulnerability in Ghost CMS allows unauthenticated remote users to redeem deactivated or archived promotional subscription offers by programmatically passing old offer identifiers during the checkout session initialization.
The affected component is Ghost's subscription and membership offering subsystem. This component manages portal sign-ups, membership levels, pricing tiers, and promotional discounts. When a user requests to subscribe to a paid tier, the backend system dynamically generates a payment session and communicates the details to the external payment gateway (Stripe).
Prior to the patch, this subsystem allowed unauthenticated remote users to redeem promotional codes and offers that were deactivated or archived. By exposing an API endpoint that processes raw inputs directly, Ghost became vulnerable to business logic bypasses. The attack surface is completely public-facing, meaning anyone on the internet with access to the checkout page can trigger this logical oversight.
The vulnerability is classified under CWE-20 (Improper Input Validation) with a CVSS 3.1 base score of 4.8. The main impact is financial and operational, as it allows unauthorized users to sign up for membership tiers at discounted prices that administrators had intended to terminate. Although it does not expose sensitive operating system capabilities, it directly disrupts the economic integrity of CMS deployments utilizing Ghost's membership modules.
The core of the vulnerability lies in a logic gap within the backend database retrieval workflow. In Ghost CMS, promotional discounts are stored as 'Offers' with distinct states. When a site administrator chooses to disable or deprecate an offer, its database field status transitions from 'active' to 'archived' or another equivalent inactive value.
When a checkout process is initialized, the application controller handles the validation of parameters such as tierId and offerId. However, the server-side logic in unpatched versions only checked whether the database query successfully retrieved an offer record. It did not evaluate whether that record's status field permitted active redemptions.
Because deactivated or archived offers are preserved in the database to maintain relational integrity for historical billing and transaction logs, the query always successfully located the record. Lacking any status validation, the controller took the discount metadata from the archived offer and supplied it to the payment gateway session. This created an operational route where an obsolete promotion could be applied repeatedly to new subscriptions.
The vulnerability resides in the controller responsible for resolving payment checkout sessions, specifically located at ghost/core/core/server/services/members/members-api/controllers/router-controller.js. The vulnerable logical flow took the validated parameters from the input request and proceeded to apply them to the checkout data builder without validating state transition rules.
Below is the code diff of the patch implemented in version 6.54.1, illustrating the addition of explicit state verification:
@@ -467,6 +467,13 @@ module.exports = class RouterController {
});
}
+ if (offer.status && offer.status !== 'active') {
+ throw new BadRequestError({
+ message: tpl(messages.offerArchived),
+ context: 'Offer with id "' + offerId + '" is no longer active'
+ });
+ }
+
if (!offer.tier) {
throw new BadRequestError({
message: 'Offer does not have a tier'The inserted verification block acts as a barrier directly after the record retrieval phase. The if conditional checks whether the offer.status field is present and strictly verifies if its value deviates from the 'active' string state. If the condition is met, the application invokes the localized translation layer and throws a standard HTTP 400 BadRequestError, terminating the execution flow prior to Stripe checkout generation.
While this fix successfully blocks basic programmatic redemption of inactive offers, developers must ensure that the returned offer object always includes the status field. If subsequent API variations or queries yield partial objects where status is omitted or undefined, the expression evaluates to falsy, bypassing the entire validation block.
To exploit this flaw on an unpatched Ghost instance, an attacker must first obtain a valid but inactive offerId. These identifiers can often be scraped from web search archives, historical social media advertisements, client-side caches, or prior subscription receipts. Alternatively, if predictable naming structures or sequence patterns are utilized for campaigns, an attacker can attempt brute-force enumeration.
Once an inactive ID is obtained, the attacker navigates to the registration interface and initiates the checkout process. Using a local interception proxy, the outbound payment initialization request is intercepted before hitting the Ghost API. The attacker then injects the inactive identifier into the HTTP POST request payload.
{
"tierId": "prod_example123",
"offerId": "archived_offer_id_abc"
}Because the vulnerable server fails to validate the offer's current status, it resolves the archived promotional data and generates a valid Stripe checkout URL incorporating the discount. The server returns this URL in the HTTP response body. The attacker then follows the link to finalize the payment on Stripe's domain, successfully securing the discounted subscription terms.
The primary impact of CVE-2026-70589 is economic degradation and unauthorized access to premium subscription tiers. Attackers can bypass billing tier requirements, allowing them to purchase high-value membership plans at reduced prices or even for free, depending on the discount parameters of the archived offer.
The vulnerability is assigned a CVSS v3.1 base score of 4.8. The CVSS vector string is CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N. The attack complexity is rated as High because it requires gathering or guessing a valid inactive identifier. Privileges required and user interaction are both rated as None since the checkout endpoints are accessible to unauthenticated public visitors.
There is a low confidentiality impact, as an attacker can confirm the existence of legacy promotions and pricing structures that were meant to remain hidden. Availability remains completely unaffected by this vulnerability, as it does not trigger memory corruption, deadlocks, or server resource exhaustion.
The primary remediation path is upgrading the Ghost installation to version 6.54.1 or newer. This upgrade introduces the required backend validation blocks to block checkout initialization when inactive promotional IDs are passed.
If an immediate upgrade is not feasible, administrators can implement a defense-in-depth mitigation strategy at the payment gateway level. Because Ghost's internal offers correspond directly to Coupon entities inside Stripe, administrators can navigate to their Stripe Dashboard, review their active and inactive coupons, and manually delete or archive any obsolete coupon codes. This ensures that even if a vulnerable Ghost server successfully generates a session payload with an old discount code, Stripe's payment API will reject the transaction.
Additionally, security teams can implement detection mechanisms. For instance, Web Application Firewalls (WAF) can be configured to monitor the rate of requests directed to /members/api/checkout/ to prevent automated brute-forcing or enumeration of potential offerId strings.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Ghost TryGhost | >= 4.22.0, < 6.54.1 | 6.54.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-20 |
| Attack Vector | Network |
| CVSS Base Score | 4.8 |
| Impact | Unauthorized Pricing Discounts / Membership Manipulation |
| Exploit Status | No Public Exploit |
| KEV Status | Not Listed |
The product does not validate or incorrectly validates input that can affect the control flow or data flow of a program.
CVE-2026-53948 is a stored cross-site scripting (XSS) vulnerability in the Ghost content management system. Affected versions (v6.19.4 up to v6.21.0) trusted the client-supplied Content-Type header during file uploads via the Admin API. This allowed authenticated attackers to upload benignly-named files with executable MIME types (like text/html), executing scripts in visitor browsers when hosted on integrated cloud platforms like S3 or GCS.
A Server-Side Request Forgery (SSRF) vulnerability exists in the Ghost content management system from version 6.0.9 up to, but not including, 6.21.1. The flaw resides in the 'request-external.js' module, where the IP address validation blocklist fails to account for fully expanded IPv4-mapped IPv6 formats. This allows unauthenticated remote attackers to bypass the private IP filter and initiate unauthorized connections to loopback services, internal subnets, or cloud instance metadata endpoints.
Ghost CMS is vulnerable to Server-Side Request Forgery (SSRF) in versions 6.0.9 through 6.21.1. Due to a Time-of-Check to Time-of-Use (TOCTOU) race condition in its outbound fetch validation logic, an attacker can bypass IP blocklists via DNS Rebinding. This allows unauthorized interaction with private networks and local services.
A Server-Side Request Forgery (SSRF) vulnerability exists in the Mobiledoc post-rendering component of Ghost CMS versions 6.19.4 through 6.21.0. This allows authenticated staff users with post creation or editing privileges to force the application server to perform arbitrary outbound HTTP GET requests, targeting internal endpoints, local loopback interfaces, or cloud metadata endpoints.
An authenticated staff-level user can perform a side-channel, boolean-based blind database query attack through the Ghost Admin API to systematically extract the hashed passwords (bcrypt) of other staff users, including administrators, due to insecure filter mapping.
A comprehensive technical analysis of CVE-2026-70591, a Server-Side Request Forgery (SSRF) vulnerability identified in the Ghost Content Management System. The flaw resides in the server-side image fetching mechanism of the ImageSize class, which allows authenticated, staff-level users to force the backend to perform unvalidated HTTP GET requests targeting local or private network services. This report provides an in-depth exploration of the root cause, vulnerable code structures, patch implementations, and mitigation steps.