Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33221

CVE-2026-33221: Nhost MIME Type Validation Vulnerability

CVE-2026-33221 is a MIME type validation flaw in Nhost's storage service that allows attackers to bypass file upload restrictions by spoofing Content-Type headers. This post covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-33221 Overview

Nhost, an open source Firebase alternative with GraphQL, contains a MIME type validation bypass vulnerability in its storage service. 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.

Critical Impact

Attackers can bypass MIME-type-based upload restrictions to store potentially malicious files by spoofing the Content-Type header during file uploads.

Affected Products

  • Nhost Storage Service versions prior to 0.12.0

Discovery Timeline

  • 2026-03-20 - CVE CVE-2026-33221 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-33221

Vulnerability Analysis

This vulnerability stems from a fundamental input validation flaw (CWE-343: Predictable Value Range from Previous Values) in the Nhost storage service's file upload handler. The service accepts the Content-Type header provided by the client at face value without performing any server-side validation or MIME type detection on the actual file contents.

When an administrator configures bucket restrictions to only allow certain file types (e.g., images), the restriction becomes ineffective because an attacker can simply set any desired Content-Type header in their upload request while sending malicious content. For example, an attacker could upload an executable file while claiming it has a Content-Type of image/png, completely bypassing the intended security controls.

Root Cause

The root cause is the absence of server-side MIME type detection in the file upload workflow. The storage service relies solely on client-provided metadata to determine file types, violating the security principle of never trusting client input. The upload handler in services/storage/controller/upload_files.go accepted the Content-Type header without cross-referencing the actual file content.

Attack Vector

The attack vector is network-based, requiring an attacker to craft a malicious HTTP multipart file upload request. The attacker manipulates the Content-Type header to match an allowed MIME type while the request body contains disallowed content. This requires no special privileges but does require user interaction through the upload interface. The attack complexity is considered high due to the specific conditions required for exploitation.

The exploitation flow involves:

  1. Identifying a Nhost instance with MIME-type restrictions on storage buckets
  2. Crafting a multipart upload request with a spoofed Content-Type header
  3. Sending malicious file content that would normally be blocked by bucket restrictions
  4. The file is accepted and stored despite violating the configured restrictions

Detection Methods for CVE-2026-33221

Indicators of Compromise

  • File uploads where the stored MIME type does not match the actual file content signature
  • Storage buckets containing unexpected file types that should have been blocked by configuration
  • Upload logs showing files that passed MIME restrictions but have suspicious file signatures upon inspection

Detection Strategies

  • Implement file signature (magic byte) analysis to detect mismatches between declared and actual file types
  • Monitor storage bucket contents for files that violate configured MIME restrictions
  • Review upload access logs for patterns of users uploading files with unusual or mismatched content types

Monitoring Recommendations

  • Enable detailed logging for file upload operations including both declared and detected MIME types
  • Set up alerts for storage bucket integrity violations where file contents don't match stored metadata
  • Perform periodic audits of stored files to verify MIME type consistency

How to Mitigate CVE-2026-33221

Immediate Actions Required

  • Upgrade Nhost storage service to version 0.12.0 or later immediately
  • Audit existing storage buckets for files that may have bypassed MIME restrictions
  • Review and validate any files uploaded prior to the patch to ensure they match expected types

Patch Information

The vulnerability has been patched in Nhost storage version 0.12.0. The fix implements server-side MIME type detection for all file uploads, ensuring that file content is analyzed regardless of the client-provided Content-Type header.

The patch adds proper MIME detection by importing the io package and implementing content-based file type detection:

go
 	"context"
 	"encoding/json"
 	"fmt"
+	"io"
 	"log/slog"
 	"mime/multipart"
 	"net/http"

Source: GitHub Commit Update

For additional details, see the GitHub Security Advisory GHSA-g9f6-9775-hffm and the GitHub Release Notes 0.12.0.

Workarounds

  • If upgrading is not immediately possible, implement a reverse proxy or WAF rule that performs server-side MIME detection before forwarding requests to the storage service
  • Consider temporarily restricting file upload functionality to trusted users until the patch can be applied
  • Implement additional application-layer validation that checks file magic bytes against declared MIME types
bash
# Verify current Nhost storage version
nhost version

# Upgrade to patched version
nhost upgrade storage@0.12.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechNhost

  • SeverityLOW

  • CVSS Score2.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-343
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request #4018

  • GitHub Release Notes 0.12.0

  • GitHub Security Advisory GHSA-g9f6-9775-hffm
  • Related CVEs
  • CVE-2026-34969: Nhost Information Disclosure Vulnerability

  • CVE-2026-34200: Nhost CLI MCP Authentication Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English