Skip to main content

Ghost CMS EUVDEUVD-2026-39021

| CVE-2026-53948 MEDIUM
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-06-24 GitHub_M GHSA-944x-pm95-3jpr
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to Ghost Admin API with low-privileged account
  2. Delivery
    Craft multipart upload with attacker-chosen Content-Type (text/html)
  3. Exploit
    File stored on S3/GCS preserving malicious MIME type
  4. Install
    Obtain public URL of uploaded file served from site origin
  5. C2
    Deliver URL to target victim (visitor or staff)
  6. Execute
    Victim browser fetches and executes file as HTML/JS in site origin context
  7. Impact
    XSS 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Ghost 6.19.4, < 6.21.1

Affected Packages

npm ghost fix: 6.21.1

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

Vendor (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Jun 24, 2026 - 20:03 EUVD

DescriptionCVE.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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
Popular open-source Node.js CMS, primarily blogging and publishing sites
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Ghost

View all
CVE-2026-22594 HIGH POC
8.1 Jan 10

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

CVE-2026-29053 HIGH POC
7.6 Mar 05

Arbitrary code execution in Ghost CMS versions 0.7.2 through 6.19.0 allows authenticated attackers with theme upload pri

CVE-2022-28397 CRITICAL POC
9.8 Apr 12

An arbitrary file upload vulnerability in the file upload module of Ghost CMS v4.42.0 allows attackers to execute arbitr

CVE-2022-27139 CRITICAL POC
9.8 Apr 12

An arbitrary file upload vulnerability in the file upload module of Ghost v4.39.0 allows attackers to execute arbitrary

CVE-2026-26980 CRITICAL POC
9.4 Feb 20

SQL injection in Ghost CMS versions 3.24.0 through 6.19.0 allows unauthenticated attackers to read arbitrary database da

CVE-2024-34451 CRITICAL POC
9.1 Jun 16

Ghost through 5.85.1 allows remote attackers to bypass an authentication rate-limit protection mechanism by using many X

CVE-2024-23724 CRITICAL POC
9.0 Feb 11

Ghost through 5.76.0 allows stored XSS, and resultant privilege escalation in which a contributor can take over any acco

CVE-2024-34448 HIGH POC
8.8 May 22

Ghost before 5.82.0 allows CSV Injection during a member CSV export. Rated high severity (CVSS 8.8), this vulnerability

CVE-2020-8134 HIGH POC
8.1 Mar 20

Server-side request forgery (SSRF) vulnerability in Ghost CMS < 3.10.0 allows an attacker to scan local or external netw

CVE-2026-53950 HIGH POC
7.5 Jun 24

Cross-site scripting (JavaScript injection) in Ghost's ActivityPub client (@tryghost/activitypub) prior to version 3.1.0

CVE-2023-32235 HIGH POC
7.5 May 05

Ghost before 5.42.1 allows remote attackers to read arbitrary files within the active theme's folder via /assets/built%2

CVE-2021-29484 MEDIUM POC
6.8 Apr 29

Ghost is a Node.js CMS. Rated medium severity (CVSS 6.8), this vulnerability is remotely exploitable, no authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy