CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-105647

CVE-2026-105647: Server-Side Request Forgery via Favicon Probing in Ghost CMS

Alon Barad
Alon Barad
Software Engineer

Oct 8, 2026·8 min read·25 visits

Executive Summary (TL;DR)

Ghost CMS versions 6.54.1 through 6.64.0 are vulnerable to unauthenticated blind SSRF due to a validation bypass in the favicon resolution flow. Attackers can leverage this to make HTTP requests targeting private and loopback networks.

An unauthenticated Server-Side Request Forgery (SSRF) vulnerability exists in Ghost CMS from version 6.54.1 to 6.65.0. The vulnerability stems from a validation bypass in the favicon resolution logic within the bookmark-fetching subsystem, which allows remote, unauthenticated attackers to trigger arbitrary HTTP requests to the local host and internal networks. This bypass circumvents the custom DNS-level IP blocklist controls configured globally in the application.

Vulnerability Overview & Attack Surface

Ghost CMS relies on feature-rich metadata parsing to support administrative features such as incoming Webmentions and dynamic bookmark previews. When a user submits an external URL to be added as a bookmark, the core backend services parse the destination webpage's DOM to extract Open Graph metadata, oEmbed structures, and favicon resources. This functionality inherently exposes the server to Server-Side Request Forgery (SSRF) risks, as the application is directed to retrieve network assets from user-controlled inputs.

To mitigate these risks, Ghost deploys a hardened global HTTP helper, externalRequest. This helper registers hook validation routines that resolve target domain names and match them against blocklists. This connection-time validation blocklist targets loopback (e.g., 127.0.0.1), RFC 1918 private IP blocks (e.g., 10.0.0.0/8), and link-local structures (e.g., 169.254.169.254). Any connection attempt resolving to these private ranges is aborted at the socket initialization phase before any HTTP traffic is sent.

However, a critical vulnerability arose because the application delegated favicon extraction to a third-party library, metascraper-logo-favicon. Rather than utilizing Ghost's central HTTP helper, this library relied on its default package execution routine, which instantiated a standalone, uninstrumented network client (reachable-url). Because this library bypassed the application's central connection hooks entirely, it created a structural gap in the network security architecture, making the platform susceptible to SSRF.

Root Cause Analysis & Architecture Flaw

The primary architectural flaw resides in the separation of HTTP clients within the same Node.js execution loop. While Ghost’s core services are wired to route outgoing requests through the customized Got instance wrapped by externalRequest, the metadata scraper executed in a separate modular sandbox. By invoking metascraper-logo-favicon with its default configuration, Ghost permitted the library to perform its own endpoint reachability checks.

Under the hood, metascraper-logo-favicon calls reachable-url, which depends on got v11. Since got v11 was initialized in the library scope, it did not inherit the application-level dnsLookup validation callback designed by Ghost's security team. When a bookmark input contained references to internal endpoints, the library attempted to resolve and connect directly to the destination without examining the resolved IP address.

This behavior matches the class of Time-of-Check Time-of-Use (TOCTOU) weaknesses, where validation is performed on one resource (such as checking the initial bookmark URL), but a separate subsystem accesses an unvalidated relative path (such as a favicon endpoint) without equivalent boundary checks. The sequence of execution can be modeled visually below.

Code Analysis & Patch Walkthrough

Prior to the fix, Ghost initialized metascraper-logo-favicon in oembed-service.js with only basic options. This allowed the module to execute the network requests utilizing its built-in resolver. The vulnerability was mitigated in version 6.65.0 by overriding the third-party network resolution logic.

The patch implemented a custom resolveFaviconUrl helper within the OEmbedService class, passing this helper as a custom configuration parameter to the constructor of metascraper-logo-favicon. This ensures that all outbound favicon verification requests route directly through Ghost's central externalRequest instance, thereby enforcing connection-time DNS filtering.

// From: ghost/core/core/server/services/oembed/oembed-service.js
// Overriding the default resolver with a secure alternative
 
  /**
   * Requests a URL through this.externalRequest and resolves with the response
   * and at most the first chunk of its body, aborting the rest of the download.
   */
  fetchFirstChunk(url) {
    return new Promise((resolve, reject) => {
      const stream = this.externalRequest.stream(url, {
        headers: {
          'user-agent': USER_AGENT,
          range: 'bytes=0-0',
        },
        timeout: {
          request: DEFAULT_REQUEST_TIMEOUT,
        },
        decompress: false,
        throwHttpErrors: false,
      });
      let response;
 
      stream.on('response', (res) => {
        response = res;
      });
      stream.once('data', (chunk) => {
        stream.destroy(); // Abort downloading larger payloads to mitigate resource exhaustion
        resolve({ response, chunk });
      });
      stream.once('end', () => resolve({ response }));
      stream.on('error', reject);
    });
  }

The implementation of fetchFirstChunk incorporates a critical defense-in-depth pattern. It defines a byte range limitation (range: 'bytes=0-0') in the HTTP request headers and terminates the socket connection by calling stream.destroy() upon receipt of the first chunk of data. This prevents attackers from executing a secondary Denial-of-Service (DoS) vector by forcing the CMS server to download exceedingly large mock binary objects masqueraded as favicons.

Additionally, the patch implements strict verification on the data returned:

    if (contentTypes) {
      const contentType = response.headers['content-type']?.split(';')[0].toLowerCase();
      if (!contentType || !contentTypes.some((ct) => contentType.includes(ct))) {
        return undefined;
      }
      // An empty body or one starting with '<' (ASCII 60) is HTML markup, not an image
      if (!chunk?.length || chunk[0] === 60) {
        return undefined;
      }
    }

By checking whether the first byte is equivalent to ASCII character 60 (<), the application ensures that HTML documents returned by internal interfaces (such as diagnostic or administrative consoles) are not parsed as image layouts. This breaks timing side-channels and limits structural data-leak potential. This remediation is robust and complete because it fully addresses the network isolation model by routing all traffic through the authenticated hook framework.

Exploitation Methodology & Proof-of-Concept

To trigger the vulnerability, an attacker does not require administrative or author-level credentials. Any endpoint processing external input for previews or webmentions can be used as the entry point.

The attack begins when the attacker deploys a malicious external page to host a custom DOM structure. This index file acts as a redirection matrix. The attacker inserts a favicon declaration that points to a local or non-routable resource, as shown in this HTML payload:

<!DOCTYPE html>
<html>
<head>
  <title>Proof of Concept - CVE-2026-105647</title>
  <link rel="icon" href="http://169.254.169.254/latest/meta-data/" type="image/png">
</head>
<body>
  <h1>Ghost CMS Exploit Target Page</h1>
</body>
</html>

Next, the attacker submits the URL of this external server to the target Ghost CMS instance via a bookmark-generating endpoint. When Ghost executes the metadata lookup, it contacts the attacker-controlled server, retrieves this HTML source, and executes the favicon parsing module.

Because of the lack of input sanitization in the unpatched library, reachable-url tries to establish a direct connection to http://169.254.169.254/latest/meta-data/. The underlying operating system initiates a TCP socket connection to the cloud metadata address, bypassing Ghost's validation policies. Although the application does not return the internal content in the HTTP response, the attacker can observe connection latency variations and HTTP error messages to map internal port state or verify the existence of local service configurations.

Impact & Security Threat Modeling

This vulnerability is classified as a Blind Server-Side Request Forgery (CWE-918). It receives a CVSS v3.1 base score of 4.0, representing Medium severity. The attack complexity is rated as High because exploiting this blind state for direct host compromise requires structured conditions, such as exploiting insecure local endpoints or leveraging DNS rebinding to execute complex state changes.

The most acute threat presented by this vulnerability applies to Ghost CMS environments hosted on public cloud infrastructure (such as AWS EC2, Google Cloud Platform, or DigitalOcean Droplets). If the hosting environment does not mandate AWS IMDSv2 (which enforces token-based session parameters and prevents unauthenticated headers), an attacker could query IMDSv1 to retrieve metadata or credentials.

Additionally, the blind SSRF allows attackers to scan local ports. By supplying an array of custom links pointing to internal ports (e.g., http://127.0.0.1:8080/), the attacker can monitor the HTTP return code timing. Active ports will close connections or return content-types immediately, while closed ports will reject connections, establishing a precise side-channel map of private network services.

Remediation & Defense-in-Depth Hardening

The principal resolution for CVE-2026-105647 is upgrading the application suite directly to Ghost v6.65.0 or higher. This release integrates the secure favicon lookup helper, forcing outbound connections to be evaluated against connection-time DNS constraints. Organizations using npm packages must verify that sub-dependencies of oembed-service do not reference the unhardened module directly.

For enterprise clusters unable to apply immediate patch sets, network isolation should be established using OS-level controls. Network access policies must prevent the user running the Node.js application process from establishing outbound connections to RFC 1918 addresses or cloud metadata endpoints. This can be configured on Linux servers using iptables:

# Block the Node.js user from querying the link-local metadata endpoint
iptables -A OUTPUT -m owner --uid-owner ghost_user -d 169.254.169.254 -j REJECT
 
# Block the Node.js user from accessing local host administrative ranges
iptables -A OUTPUT -m owner --uid-owner ghost_user -d 127.0.0.0/8 -j REJECT

Furthermore, routing all external application queries through an egress forward proxy, such as Squid, provides an additional layer of security. The proxy should be configured with ACL rules that block requests targeting loopback addresses and private subnets, ensuring that application bypasses cannot reach internal resources.

Official Patches

TryGhostOfficial GitHub Security Advisory

Fix Analysis (1)

Technical Appendix

CVSS Score
4.0/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
EPSS Probability
0.23%
Top 87% most exploited

Affected Systems

Ghost Content Management System (CMS)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Ghost
TryGhost
>= 6.54.1, < 6.65.06.65.0
AttributeDetail
CWE IDCWE-918 / CWE-367
Attack VectorNetwork
CVSS v3.1 Score4.0 (Medium)
Exploit StatusPoC / Analytical
CISA KEV StatusNot Listed
ImpactLow Confidentiality (Blind SSRF)

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1005Data from Local System
Collection
CWE-918
Server-Side Request Forgery (SSRF)

The web application attempts to fetch a resource from a remote server but fails to validate the resolved destination IP address, enabling requests to internal resources.

Vulnerability Timeline

Pull request #30918 submitted and evaluated.
2026-09-15
Fix commit merged into the main release branch.
2026-09-21
Security Advisory GHSA-322m-ff4g-9vx9 published, and Ghost v6.65.0 released.
2026-10-05
CVE-2026-105647 assigned and published.
2026-10-05

References & Sources

  • [1]GitHub Security Advisory GHSA-322m-ff4g-9vx9
  • [2]NVD - CVE-2026-105647 Details

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
1 views•12 min read
•about 2 hours ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
5 views•12 min read
•about 3 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
4 views•10 min read
•about 4 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 5 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 6 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
5 views•10 min read