CVE-2026-53948
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGhost 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGhost's Admin API file upload endpoint insufficiently validated the client-supplied Content-Type header, allowing attackers to upload files with arbitrary MIME types. When storage backends (S3/GCS) serve these files with attacker-controlled content types, and when files are served from the same origin as the site, this enables stored XSS against visitors or staff.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine Ghost installation versionRun 'ghost version' in the Ghost installation directory, or check the 'package.json' file for the 'version' field, or access /ghost/api/admin/settings/ via the API and look for the 'version' in the response.Affected if The installed version is lower than 6.21.1 and the Admin API file upload endpoint is accessible.
-
Verify Admin API file upload endpoint existsCheck if the Ghost Admin API is reachable at /ghost/api/admin/ and confirm file upload routes exist by reviewing API documentation or attempting a request to upload endpoints with appropriate admin authentication.Affected if The Admin API is exposed and file upload functionality is enabled.
-
Identify storage backend configurationInspect the Ghost config file (config.development.json or config.production.json) for the 'storage' setting. Check if it uses 'local-file-storage' or a cloud provider (S3, GCS) by examining the 'active' field under the storage configuration.Affected if The storage backend is set to a cloud provider (S3/GCS) or any backend that serves uploaded files with client-supplied Content-Type headers.
-
Check file serving origin configurationExamine the Ghost config file for the 'url' setting (site URL) and compare it to the storage backend's public URL. Verify if uploaded files are served from the same domain as the main site by checking the 'public' URL in storage config or testing a file upload URL.Affected if Uploaded files are served from the same origin domain as the Ghost site (same base URL).
A user is affected if their Ghost installation is version lower than 6.21.1, has the Admin API with file upload enabled, uses a storage backend that preserves client-supplied Content-Type headers, and serves uploaded files from the same origin as the site.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade Ghost to version 6.21.1 or later, which contains the fix for proper Content-Type validation on file uploads.
6.21.1
- Backup your Ghost installation and database before upgrading
- Upgrade Ghost to version 6.21.1 using your installation method (npm or Docker)
- If using npm: run `ghost update` or manually update the version in package.json then run `npm install`
- If using Docker: pull the updated Docker image with version 6.21.1
- After upgrade, verify the Content-Type header is now properly validated on file uploads
- Confirm the site functions correctly after the upgrade
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-53948 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-53948 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data