CVE-2026-53948
JSON

5.4medium

Ghost: File Upload Content-Type Spoofing

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.13% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-944x-pm95-3jprBIT-GHOST-2026-53948

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.

Affected

Product or packageVersionsReported by
TryGhost Ghost>= 6.19.4, < 6.21.1CVE List
ghost (npm)from 6.19.4 before 6.21.1GitHub Advisory Database
ghost (Bitnami)from 6.19.4 before 6.21.1Bitnami Vulnerability Database

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-434

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Vulnerable versions

This vulnerability is present in Ghost from v6.19.4 up to v6.21.0.

Patches

v6.21.1 contains a fix for this issue.

How to update

For self-hosters using Docker, find Docker's official Ghost image here. Updating a Docker-based Ghost instance is documented here.

If your Ghost is a Ghost-CLI install see our documentation on updating it to the latest version here.

For more information

If you have any questions or comments about this advisory, email us at security@ghost.org.

NVD (es)

Ghost es un sistema de gestión de contenido Node.js. Desde 6.19.4 hasta 6.21.1, la validación insuficiente del Content-Type proporcionado por el cliente en el endpoint de carga de archivos de la API de administración de Ghost permitió que los archivos cargados fueran servidos desde el sitio con un tipo de contenido elegido por el atacante en backends de almacenamiento S3/GCS. En instalaciones que sirven archivos cargados desde el mismo origen que el sitio, esto podría haberse utilizado para facilitar cross-site scripting almacenado contra los visitantes o el personal del sitio. Esta vulnerabilidad está corregida en 6.21.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-53948 changed 2026-06-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-944x-pm95-3jpr changed 2026-08-04CC-BY-4.0
NVDCVE-2026-53948 changed 2026-10-25Public domain
Bitnami Vulnerability DatabaseBIT-GHOST-2026-53948 changed 2026-07-08Apache-2.0