Aug 5, 2026·7 min read·60 visits
Authenticated staff-level users can exploit insecure nested filter mapping in the Ghost Admin API to extract bcrypt password hashes of other users, including administrators, via boolean-based blind SQL side-channel queries.
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.
CVE-2026-70590 defines a security vulnerability in the administrative API of the Ghost content management system, specifically involving unauthorized exposure of sensitive information (CWE-200). The vulnerability surfaces in the query dynamic-filtering mechanism used within Ghost's Admin API. An authenticated attacker possessing staff-level privileges can query API resources, such as posts or pages, and instruct the application engine to evaluate comparisons against arbitrary backend database columns.
While the application layer actively filters and sanitizes API JSON payloads before they are returned to clients, it does not prevent the database execution engine from evaluating these comparative filters. Consequently, the API serves as an unintentional side-channel oracle. If the specified filter evaluates to true, the query succeeds and returns valid entries. If the filter evaluates to false, the system yields empty results.
This behavior allows a malicious actor with API access to iteratively reconstruct the bcrypt password hashes of administrative and other staff accounts. Although the hashes are stored using the computationally intensive bcrypt algorithm, they remain subject to offline brute-force and dictionary attacks. Complete compromise of target accounts becomes a secondary consequence if the offline cracking attempt succeeds.
The root cause of this vulnerability lies in the implementation of the Node Query Language (NQL / GQL) translation layer in Ghost. Ghost uses NQL to compile high-level filter query parameters, such as ?filter=status:published, directly into database queries via the Bookshelf.js and Knex.js query builders. When compiling these filters, the API prior to version 6.54.1 failed to validate the path depth and column names when traversing nested relations.
When a staff-level user requests a resource like /posts or /pages, they can supply a custom nested filter parameter, such as authors.password:~'a%'. The query translation logic parses the query and generates a SQL statement that joins the users (authors) table and executes a LIKE comparison against the password field. The Bookshelf model correctly excludes the password field from the final JSON serialization context, but the underlying database query execution has already occurred.
The exploitability of this side channel depends heavily on the underlying database engine and collation settings. On MySQL, which defaults to case-insensitive collations such as utf8mb4_general_ci, character comparisons using the LIKE operator (~ in NQL) are case-insensitive, returning positive matches for both uppercase and lowercase characters. On PostgreSQL or SQLite, exact binary matches are evaluated, allowing full-fidelity extraction of the precise case-sensitive bcrypt hash directly. This engine dependency dictates the complexity of the subsequent offline processing phase.
To mitigate this issue, the Ghost development team implemented a unified filtering transformer within the query options execution path. The fix commit 63c31fad7e473caa62d8fbb4651a04a2a62b5d00 enforces the rejectAdminApiRestrictedFieldsTransformer across multiple endpoint controllers including posts, pages, and their associated export engines.
In the vulnerable implementation of the pages endpoint controller, the query parameters passed directly to models.Post.findPage(frame.options) without filtering or intercepting client-supplied AST fields. The patch inserts the mongoTransformer property into the options object:
// ghost/core/core/server/api/endpoints/pages.js
const {rejectAdminApiRestrictedFieldsTransformer} = require('./utils/api-filter-utils');
// ...
query(frame) {
const options = {
...frame.options,
mongoTransformer: rejectAdminApiRestrictedFieldsTransformer
};
return models.Post.findPage(options);
}This structural modification prevents the query builder from mapping forbidden database columns. The transformer recursively sweeps the AST structure parsed from the NQL expression. If a restricted field such as password is detected within the query path, the transformer blocks or normalizes the filter payload before Knex.js compiles it to raw SQL. This prevents the execution of arbitrary comparisons on administrative credential tables, closing the boolean oracle side-channel entirely.
Exploiting CVE-2026-70590 requires a valid administrative or staff-level session token to interact with the Ghost Admin API. The attacker leverages the dynamic filter parameter exposed on endpoints like /ghost/api/admin/posts/ or /ghost/api/admin/pages/. An attack starts by querying a post associated with the target author while appending a wildcard comparison matching the expected prefix of a bcrypt hash.
Because bcrypt hashes start with a predictable prefix, such as $2b$12$, the attacker can verify the oracle function by requesting /ghost/api/admin/posts/?filter=authors.password:~'$2b$'. A successful match confirms the target hash structure. The attacker then builds an automated script to systematically cycle through the base64 character set ([a-zA-Z0-9./$]) for each character index of the hash.
Character 1: $ -> True
Character 2: 2 -> True
Character 3: b -> True
Character 4: $ -> True
Character 5: 1 -> True
Character 6: 2 -> True
Character 7: $ -> True
Character 8: [Iterate through a-z, A-Z, 0-9] -> Match: a
This serial lookup yields the target's complete bcrypt hash. In a MySQL environment, the resulting extracted hash is case-insensitive. The attacker must feed the case-insensitive hash into an offline cracking tool like Hashcat or John the Ripper, configured to mutate alphabetical positions. Under PostgreSQL or SQLite, the exact hash is retrieved, enabling a direct dictionary attack against the clean bcrypt string.
The concrete impact of CVE-2026-70590 is unauthorized access to sensitive credential material, leading to potential account takeover. The CVSS score for this vulnerability is assessed at 4.8 (Medium). The score reflects the requirement for high-privilege access (PR:H) and high attack complexity (AC:H) due to the need for a staff session, collation issues, and the necessity of offline brute-forcing.
Importantly, Ghost includes a security control called Device Verification. If an attacker successfully cracks an administrator's bcrypt hash and attempts to authenticate from an unrecognized device or IP address, Ghost prompts for a verification code sent to the owner's registered email. This verification step serves as a secondary line of defense that prevents immediate, direct account takeover unless the attacker also compromises the user's email inbox.
Furthermore, the requirement of high privileges limits the attack surface primarily to trusted users or compromised staff credentials. However, in multi-author publications, a rogue junior writer could exploit this vulnerability to elevate their privileges to a full administrator. This scenario bypasses role-based access controls entirely, presenting a severe risk to large-scale, collaborative editorial teams.
The primary remediation path is upgrading the Ghost instance to version 6.54.1 or higher. This update applies the necessary NQL transformer filters across all post and page API controllers, preventing unauthorized SQL comparisons. Administrators running self-hosted installations can update their environments using the Ghost-CLI command:
ghost updateIf patching cannot be executed immediately, administrators should implement defensive configuration controls. Deploying a Web Application Firewall (WAF) rule to intercept and inspect URI queries targeting the Admin API is highly recommended. The following ModSecurity rule blocks requests containing references to restricted fields within query parameters:
SecRule ARGS:filter "(?i)\bpassword\b" "id:100001,phase:2,deny,status:400,msg:'Insecure filter mapping attempt detected'"Additionally, security teams should audit the Admin API access logs for anomalous, high-frequency requests targeting /ghost/api/admin/posts/ or /ghost/api/admin/pages/ containing complex filter query structures. Standard operational traffic rarely requires highly nested relational password comparisons, making these patterns highly visible indicators of compromise.
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Ghost TryGhost | < 6.54.1 | 6.54.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-200 |
| Attack Vector | Network (AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:N) |
| CVSS Score | 4.8 |
| EPSS Score | 0.0 |
| Impact | Information Disclosure (Password Hashes) |
| Exploit Status | None (No public weaponized exploit) |
| KEV Status | Not Listed |
Exposure of Sensitive Information to an Unauthorized Actor
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.