CVE-2026-53948

Ghost: File Upload Content-Type Spoofing

Published Jun 24, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Ghost is a Node.js content management system that exposes an Admin API file upload endpoint. From 6.19.4 through 6.21.0 the system does not verify the client‑supplied Content‑Type header. An attacker can upload a file with a chosen MIME type and have it served with that type when the storage backend is S3 or GCS. If the site serves uploaded files from the same origin, the attacker can inject malicious scripts that are stored and later executed for any user or staff who visits the site, leading to a stored cross‑site scripting vulnerability consistent with CWE‑434. The issue is fixed in Ghost 6.21.1.

Affected Systems

The issue affects TryGhost Ghost versions 6.19.4, 6.20.x, and 6.21.0. These releases are vulnerable when uploads are served from the same domain as the site. Versions prior to 6.19.4 or 6.21.1 and newer are not impacted.

Risk and Exploitability

The CVSS score is 5.4, indicating moderate severity, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires access to the Admin API file upload endpoint, typically meaning elevated user privileges. Once an attacker has such access, he can upload files with a malicious content type that will be served to site visitors, enabling stored XSS. No EPSS score is available, so the likelihood of exploitation is uncertain, but the moderate CVSS and authorized‑user requirement suggest a medium risk in environments that expose the Admin API to potential attackers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch by upgrading Ghost to version 6.21.1 or newer.
  • If an immediate upgrade is not possible, restrict access to the Admin API to trusted users, limit the IP ranges that may reach the endpoint, and enforce strict MIME‑type validation on uploads.
  • Configure the storage backend to serve files from a separate domain or apply a strong Content Security Policy to mitigate potential XSS consumption.

Generated by OpenCVE AI on June 24, 2026 at 21:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-944x-pm95-3jpr Ghost: File Upload Content-Type Spoofing
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ghost
Ghost ghost
Vendors & Products Ghost
Ghost ghost
Type Values Removed Values Added
Description 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.
Title Ghost: File Upload Content-Type Spoofing
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 25, 2026, 1:17 PM
Reserved
Jun 11, 2026, 3:50 PM
Status
Deferred
Published
Jun 24, 2026, 7:17 PM
Modified
Oct 25, 2026, 10:10 PM