Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nhost/nhost
  4. ›
  5. CVE-2026-33221

CVE-2026-33221: Nhost Storage Affected by MIME Type Spoofing via Trusted Client Content-Type Header in Storage Upload

March 18, 2026 (updated March 25, 2026)

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.

References

  • github.com/advisories/GHSA-g9f6-9775-hffm
  • github.com/nhost/nhost
  • github.com/nhost/nhost/commit/c4bd53f042d7f568e567e18e2665af81660fce85
  • github.com/nhost/nhost/pull/4018
  • github.com/nhost/nhost/releases/tag/storage@0.12.0
  • github.com/nhost/nhost/security/advisories/GHSA-g9f6-9775-hffm
  • nvd.nist.gov/vuln/detail/CVE-2026-33221

Code Behaviors & Features

Detect and mitigate CVE-2026-33221 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260318074820-c4bd53f042d7

Fixed versions

  • 0.0.0-20260318074820-c4bd53f042d7

Solution

Upgrade to version 0.0.0-20260318074820-c4bd53f042d7 or above.

Impact 3.1 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-343: Predictable Value Range from Previous Values
  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

go/github.com/nhost/nhost/CVE-2026-33221.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 11 May 2026 00:19:42 +0000.