CVE-2026-53948: Ghost File Upload Content-Type Spoofing Vulnerability

ghost Updated 05 Aug 2026

Summary

04/08/2026
Yes i
Moderate
5.4

CVE-2026-53948: Ghost: File Upload Content-Type Spoofing. Affects ghost versions >= 6.19.4, < 6.21.1. Fixed in 6.21.1. How to fix ↓

Also tracked for

The same CVE-2026-53948 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ghost is a popular open-source publishing platform designed for creating and managing online content. It offers a user-friendly interface, customizable themes, and a robust API for developers. However, like many web applications, Ghost is susceptible to vulnerabilities that can compromise its security, particularly in its file upload functionalities.

Vulnerability Detail

The vulnerability arises from insufficient validation of the client-supplied 'Content-Type' on Ghost's Admin API file upload endpoint. This flaw allows attackers to upload files that can be served with an attacker-chosen content type when using S3 or GCS storage backends. If the uploaded files are served from the same origin as the site, it could lead to stored cross-site scripting (XSS) attacks, potentially affecting site visitors or staff. The vulnerability is present in Ghost versions from 6.19.4 up to 6.21.0, with a CVSS score of 5.4 indicating a moderate severity level.

How To Fix

Latest published version: 6.72.0 as of 22 Oct 2026

npm install ghost@6.72.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.21.1

This is the first release that contains the fix.

npm install ghost@6.21.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict file uploads to specific file types and implement additional validation checks on the server-side to ensure that uploaded files are safe before serving them to users.

Conclusion

The Ghost file upload content-type spoofing vulnerability (CVE-2026-53948) poses a significant risk to installations of Ghost versions 6.19.4 to 6.21.0. It is crucial for users to update to version 6.21.1 or later to protect against potential XSS attacks. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.

See every vulnerability recorded for ghost →

Share this vulnerability

FAQ

The vulnerability allows attackers to upload files with a spoofed content type, potentially leading to stored XSS attacks.

Ghost versions from 6.19.4 up to 6.21.0 are vulnerable to this issue.

You can use Vulert's playground to check if your application is affected by this vulnerability without needing to sign up.

It is recommended to update to Ghost version 6.21.1 or later to mitigate the vulnerability.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities using just package-lock.json, making it easy to keep your applications secure.

Related vulnerabilities

Recent vulnerabilities recorded for ghost.

How To Fix

Latest published version: 6.72.0 as of 22 Oct 2026

npm install ghost@6.72.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.21.1

This is the first release that contains the fix.

npm install ghost@6.21.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback