Aug 5, 2026·6 min read·61 visits
Medium-severity SSRF in Ghost CMS (v6.19.4 - v6.21.0) allows authenticated authors/editors to abuse image dimension parsing to probe internal services and access cloud metadata servers.
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.
Ghost is an open-source, Node.js-based content management system widely used for professional publishing. Within Ghost, posts are structured using the Mobiledoc format, which utilizes standardized cards to embed rich content elements such as images, videos, and markdown blocks. To improve client-side rendering speeds, Ghost contains dynamic server-side functions that automatically capture and inject the height and width metrics of images referenced within post cards.
During the post saving, rendering, or previewing pipelines, the Ghost application server invokes a compilation function designed to fetch and record these dimensions. In vulnerable Ghost versions, the application server does not sufficiently validate the destination or domain of absolute image URLs before sending outbound requests. This creates an attack surface accessible to authenticated users with permissions to write, edit, or import drafts.
Because the HTTP client resides inside the internal network perimeter, the application server acts as an open proxy. By providing a crafted URL inside the image source metadata payload, an attacker forces the server to initiate arbitrary connections to local loopback addresses (127.0.0.1) or internal network resources that are isolated from the public internet.
The underlying technical flaw lies within the populateImageSizes function defined in the file ghost/core/core/server/lib/mobiledoc.js. When parsing an image card block inside a Mobiledoc layout, the application inspects whether the card contains pre-populated size metadata (width and height). If this metadata is absent, the function executes conditional logic to locate the image and identify its dimensions.
The logic evaluates the target image source using the following decision paths:
if (isRelativeImagePath || storageUtils.isLocalImage(payload.src)) {
size = await imageSize.getOriginalImageSizeFromStorageUrl(payload.src);
} else {
size = await imageSize.getImageSizeFromUrl(payload.src);
}Under this implementation, any image source that is not recognized as a relative path or a locally stored image falls through to the final unvalidated else block. The application then immediately executes imageSize.getImageSizeFromUrl(payload.src). This function contains no host verification, protocol validation, or IP address filtering, allowing an arbitrary string to be passed straight to the HTTP request client.
This behavior allows the user to exploit trust relationships by supplying local system destinations or cloud metadata addresses like http://169.254.169.254/ directly in the image card definition. The application resolves the target and attempts to download the data to read the image's dimensions, making the system highly vulnerable to Server-Side Request Forgery.
The vulnerability was patched by replacing the insecure else branch in ghost/core/core/server/lib/mobiledoc.js with an explicit check that validates the image source domain against the system's defined internal domains.
The patch changes the unvalidated fallback structure to use storageUtils.isInternalImage prior to execution:
@@ -140,7 +140,7 @@ module.exports = {
size = await getUnsplashSize(payload.src);
} else if (isRelativeImagePath || storageUtils.isLocalImage(payload.src)) {
size = await imageSize.getOriginalImageSizeFromStorageUrl(payload.src);
- } else {
+ } else if (storageUtils.isInternalImage(payload.src)) {
size = await imageSize.getImageSizeFromUrl(payload.src);
}This remediation ensures that arbitrary external URLs do not trigger outgoing server-side requests. The application only contacts external resources if they match configured boundaries defined under the urls:image keys or other trusted image paths.
Although the patch restricts direct SSRF attempts, a thorough evaluation shows that residual risks might persist if security teams do not monitor dynamic redirects or domain resolution. If the validation engine relies on storageUtils.isInternalImage(payload.src) and parses the authority component differently than the underlying HTTP fetching library, an attacker might bypass validation using authority spoofing patterns or dynamic DNS rebinding techniques. Furthermore, if the HTTP fetcher automatically follows HTTP 3xx redirects, an attacker could potentially register an approved domain that redirects the server to local resources.
To exploit this vulnerability, an attacker must first obtain a valid authenticated session on the Ghost instance. The required roles include Author, Editor, or Administrator, each of which has permission to create or modify post structures.
Once authenticated, the attacker creates a new post draft and manipulates the backend JSON content to structure an image card with an arbitrary URL instead of a valid image path. The payload represents the image card structure within the Mobiledoc formatting block:
{
"cards": [
["image", {
"src": "http://169.254.169.254/latest/meta-data/",
"alt": "Exploit Test"
}]
]
}Saving the post or requesting a preview forces the Ghost server to compile the post content. The populateImageSizes function identifies the missing width and height properties, evaluates the external IP address, and issues an HTTP GET request to the target IP address on behalf of the application server.
While this represents a semi-blind SSRF vector where the direct body content of the target service is not fully returned in the HTTP response body to the client interface, an attacker can extract critical details through side-channel metrics. For instance, the server's response time, specific error outputs (e.g., connection timed out vs connection refused), and the presence or absence of parsed metadata in the returned post payload reveal whether specific ports are open or closed inside the internal subnet.
The impact of CVE-2026-53946 is classified as moderate, with a CVSS v3.1 score of 5.4. Because the target scope changes from the application itself to internal services, the Scope metric is marked as Changed ('C'). This change in scope significantly broadens the potential impact area of the exploit.
In standard cloud hosting environments (such as AWS, Google Cloud, or Azure), the loopback-accessible link local IP address 169.254.169.254 serves instance configuration and IAM authorization tokens. An attacker exploiting this SSRF can retrieve metadata credentials and potentially escalate their privileges to compromise the underlying cloud resources hosting the Ghost application.
In local system environments, the attack vector allows scanning and interaction with administrative services running on internal loopback interfaces (such as Redis caches, database administration tools, or local container management APIs). If these services trust requests originating from 127.0.0.1 without requiring strong credentials, the SSRF can lead to remote command execution on the host machine.
The primary resolution for this vulnerability is upgrading the Ghost instance to version 6.21.1 or higher. This release integrates the domain validation patch that blocks unvetted HTTP lookups for image dimensions.
If patching cannot be executed immediately, administrators must implement network-level egress blocking rules. Configure firewall configurations (such as iptables, firewalld, or cloud security groups) on the Ghost server host to block outbound traffic destined for private address spaces (RFC 1918 networks: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and local loopback limits. Additionally, block all requests targeting the cloud metadata address 169.254.169.254 unless strictly required by system architecture.
Finally, apply the principle of least privilege by auditing staff user roles. Demote untrusted users and disable public registration mechanisms that might allow untrusted parties to obtain Author or Editor permissions.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Ghost TryGhost | >= 6.19.4, < 6.21.1 | 6.21.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-918 (Server-Side Request Forgery) |
| Attack Vector | Network (AV:N) |
| CVSS Severity Score | 5.4 (Medium) |
| EPSS Score | 0.00122 (~2.31% probability of exploitation) |
| Impact | Unauthorized retrieval of internal server and metadata resources |
| Exploit Status | Proof-of-Concept / Code-level analysis |
| KEV Status | Not listed |
The web application fetches a remote resource without validating the user-supplied destination URL.
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.