Time-of-check Time-of-use (TOCTOU) Race Condition Affecting ghost package, versions >=6.0.9 <6.21.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-GHOST-17823151
  • published6 Jul 2026
  • disclosed24 Jun 2026
  • creditUnknown

Introduced: 24 Jun 2026

NewCVE-2026-53945  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade ghost to version 6.21.2 or higher.

Overview

ghost is a publishing platform

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in ghost/core/core/server/lib/request-external.js. An attacker can make the Ghost server connect to internal-network hosts by supplying an external URL that resolves to a public address during the initial check and then rebinding to a private or loopback IP when the TCP connection is established. The vulnerable outbound fetch path relied on a pre-request DNS check in beforeRequest and beforeRedirect, which an attacker could race through features that issue external requests. This lets the attacker coerce Ghost into reaching protected internal services, exposing internal endpoints and enabling requests against network resources the user did not intend Ghost to contact.

CVSS Base Scores

version 4.0
version 3.1