Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.3
CVE-2026-33221: Nhost Storage Allows Malicious File Uploads with Fake File Types
CVE-2026-33221 · published 8 months ago
Summary
A security issue in Nhost Storage allows attackers to trick the system into thinking a file has a certain type, which can lead to incorrect handling by systems that use the file's metadata. This could result in malicious files being treated as safe or being handled incorrectly. To fix this, Nhost should always detect the file type based on the file's content, rather than trusting the client-provided type.
What to do
- Update github.com nhost to version 0.0.0-20260318074820-c4bd53f042d7.
- Update nhost github.com/nhost/nhost to version 0.0.0-20260318074820-c4bd53f042d7.
- Update nhost storage to version 0.12.0 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| go | github.com | nhost |
< 0.0.0-20260318074820-c4bd53f042d7 Fix: upgrade to 0.0.0-20260318074820-c4bd53f042d7
|
| Go | nhost | github.com/nhost/nhost |
< 0.0.0-20260318074820-c4bd53f042d7 Fix: upgrade to 0.0.0-20260318074820-c4bd53f042d7
|
| – | nhost | storage |
< 0.12.0 cpe:2.3:a:nhost:storage:*:*:*:*:*:*:*:* |
Original advisory text
Nhost Storage Affected by MIME Type Spoofing via Trusted Client Content-Type Header in Storage Upload
Nhost is an open source Firebase alternative with GraphQL. Prior to version 0.12.0, the storage service's file upload handler trusts the client-provided Content-Type header without performing server-side MIME type detection. This allows an attacker to upload files with an arbitrary MIME type, bypassing any MIME-type-based restrictions configured on storage buckets. This issue has been patched in version 0.12.0.
References
- https://github.com/nhost/nhost Product
- https://github.com/advisories/GHSA-g9f6-9775-hffm
- https://nvd.nist.gov/vuln/detail/CVE-2026-33221 Vendor Advisory
- https://github.com/nhost/nhost/commit/c4bd53f042d7f568e567e18e2665af81660fce85 Patch
- https://github.com/nhost/nhost/releases/tag/[email protected]
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33221... Vendor Advisory
- https://github.com/nhost/nhost/releases/tag/storage%400.12.0 URL
- https://github.com/nhost/nhost/security/advisories/GHSA-g9f6-9775-hffm Vendor Advisory
- https://github.com/nhost/nhost/pull/4018 Patch
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
7.3
High
Type
CWE-345Insufficient Verification of Data Authenticity
CWE-434Unrestricted File Upload
CWE-343Predictable Value Range from Previous Values
Timeline
Published20 Mar 2026
Updated22 Nov 2026
First seen18 Mar 2026
Sources
GHSA-g9f6-9775-hffm · GHSA
CVE-2026-33221 · NVD
GO-2026-4759 · OSV
GHSA-g9f6-9775-hffm · OSV
CVE-2026-33221 · OSV
Track software like this
Free during beta