Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Ghost Admin API with low-privileged account
-
DeliveryCraft multipart upload with attacker-chosen Content-Type (text/html)
-
ExploitFile stored on S3/GCS preserving malicious MIME type
-
InstallObtain public URL of uploaded file served from site origin
-
C2Deliver URL to target victim (visitor or staff)
-
ExecuteVictim browser fetches and executes file as HTML/JS in site origin context
-
ImpactXSS payload executes, enabling session theft or content injection
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated access to the Ghost Admin API is required - the CVSS vector PR:L confirms a low-privileged authenticated account is the minimum prerequisite, not unauthenticated access. Beyond authentication, two specific deployment conditions must both be true: (1) Ghost must be configured to use Amazon S3 or Google Cloud Storage as its file storage backend (local disk storage is not affected), and (2) the storage backend must serve uploaded files from the same HTTP origin as the Ghost site (cross-origin file serving neutralizes the XSS vector). Exploitation is additionally limited by UI:R - a victim (visitor or staff member) must be induced to navigate to the URL of the maliciously uploaded file. Default Ghost installations using local storage or cross-origin CDN delivery are not vulnerable to the stored XSS impact described. |
| Impact | The CVSS 3.1 score of 5.4 (Medium) with vector AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N accurately captures the risk profile. PR:L confirms that Admin API authentication is a hard prerequisite - this is not unauthenticated exploitation. UI:R reflects the need to lure a victim to the URL of the maliciously uploaded file. The Scope change (S:C) is appropriate because XSS crosses the browser's security boundary, potentially affecting session integrity for both visitors and privileged staff accounts. Real-world risk is further constrained by two deployment-specific conditions: the Ghost instance must use S3 or GCS as its storage backend, and those backends must serve files from the same origin as the site. Installations serving files from a CDN subdomain or separate origin are not vulnerable to the XSS vector. No EPSS score was provided in the source data, and the vulnerability is not listed in the CISA KEV catalog, meaning no confirmed active exploitation is known. Overall, this is a genuine but bounded risk - notable for installations meeting the specific storage configuration, but not a mass-exploitation priority. |
| Exploit ScenarioDerived | An authenticated attacker with Ghost Admin API access (e.g., a contributor or staff account) uploads an HTML file with the Content-Type header manually set to text/html via a crafted multipart POST request to the upload endpoint. The file is stored on the S3 or GCS backend with that MIME type. The attacker then circulates the direct URL to the uploaded file - for example, embedded in a comment reply or phishing email targeting site staff - and when a victim clicks the link, their browser fetches and renders it as HTML from the trusted site origin, executing arbitrary JavaScript in the victim's session context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 24, 2026
Stored cross-site scripting in Ghost CMS (versions 6.19.4 through 6.21.0) is enabled by the Admin API file upload endpoint accepting and preserving attacker-supplied Content-Type headers without server-side validation. When Ghost is configured with S3 or GCS storage backends that serve uploaded files from the same origin as the site, an authenticated attacker can upload a file with a crafted Content-Type (e.g., text/html) that causes browsers to execute it as HTML or JavaScript, enabling stored XSS against visitors and staff. No public exploit code has been identified at time of analysis, and the vulnerability is fixed in Ghost 6.21.1.
RemediationAI
Upgrade Ghost to version 6.21.1, which introduces server-side enforcement of acceptable Content-Type values on the Admin API upload endpoint. The vendor advisory is available at https://github.com/TryGhost/Ghost/security/advisories/GHSA-944x-pm95-3jpr. For operators unable to upgrade immediately, the most effective compensating control is to configure the storage backend to serve uploaded files from a separate subdomain or CDN origin distinct from the Ghost site origin - this eliminates the XSS vector by enforcing cross-origin isolation, though it may require URL migration for existing media assets. An alternative is to tightly restrict Admin API access to fully trusted accounts only and audit existing uploaded files for unexpected content types, but this does not eliminate the vulnerability and carries the trade-off of operational friction. Blocking file uploads entirely via Web Application Firewall rules is a last-resort measure that would prevent the attack vector but break legitimate media publishing workflows.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Ghost is a Node.js-based content management system (CPE: cpe:2.3:a:tryghost:ghost:*:*:*:*:*:*:*:*) commonly used for blogging and publishing workflows. The vulnerability manifests at the Admin API's multipart file upload endpoint, which fails to enforce server-side Content-Type sanitization or override - a textbook instance of CWE-434 (Unrestricted Upload of File with Dangerous Type). Object storage backends such as Amazon S3 and Google Cloud Storage faithfully preserve the MIME type metadata provided at upload time, meaning files are later served over HTTP with the attacker-chosen type. When the storage origin matches the Ghost site origin, browsers honor the content type and render or execute uploaded content accordingly, bypassing the Same-Origin Policy protections that would otherwise contain a cross-origin stored XSS.
Know when Ghost gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Admin API authentication required (PR:L); S3/GCS same-origin serving is deployment-specific but not complexity-raising for an authenticated attacker; XSS crosses browser origin boundary (S:C, UI:R); no availability impact applies.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Ghost is a Node.js content management system. From 6.19.4 until 6.21.1, insufficient validation of the client-supplied Content-Type on Ghost's Admin API file upload endpoint allowed uploaded files to be served from the site with an attacker-chosen content type on S3/GCS storage backends. On installations that serve uploaded files from the same origin as the site, this could have been used to facilitate stored cross-site scripting against site visitors or staff. This vulnerability is fixed in 6.21.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Ghost CMS versions 5.105.0-5.130.5 and 6.0.0-6.10.3 contain an authentication bypass in their two-factor authentication
Arbitrary code execution in Ghost CMS versions 0.7.2 through 6.19.0 allows authenticated attackers with theme upload pri
An arbitrary file upload vulnerability in the file upload module of Ghost CMS v4.42.0 allows attackers to execute arbitr
An arbitrary file upload vulnerability in the file upload module of Ghost v4.39.0 allows attackers to execute arbitrary
SQL injection in Ghost CMS versions 3.24.0 through 6.19.0 allows unauthenticated attackers to read arbitrary database da
Ghost through 5.85.1 allows remote attackers to bypass an authentication rate-limit protection mechanism by using many X
Ghost through 5.76.0 allows stored XSS, and resultant privilege escalation in which a contributor can take over any acco
Ghost before 5.82.0 allows CSV Injection during a member CSV export. Rated high severity (CVSS 8.8), this vulnerability
Server-side request forgery (SSRF) vulnerability in Ghost CMS < 3.10.0 allows an attacker to scan local or external netw
Cross-site scripting (JavaScript injection) in Ghost's ActivityPub client (@tryghost/activitypub) prior to version 3.1.0
Ghost before 5.42.1 allows remote attackers to read arbitrary files within the active theme's folder via /assets/built%2
Ghost is a Node.js CMS. Rated medium severity (CVSS 6.8), this vulnerability is remotely exploitable, no authentication
EUVD-2026-39021
GHSA-944x-pm95-3jpr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB