The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-6221

CVE-2024-6221: Flask-CORS Information Disclosure Flaw

CVE-2024-6221 is an information disclosure vulnerability in Flask-CORS that exposes private network resources through misconfigured CORS headers. This article covers the technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2024-6221 Overview

A vulnerability in corydolphin/flask-cors version 4.0.1 allows the Access-Control-Allow-Private-Network CORS header to be set to true by default. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

Critical Impact

Default CORS misconfiguration enables external websites to access private network resources, potentially exposing internal APIs and sensitive data to unauthorized parties.

Affected Products

  • corydolphin flask-cors version 4.0.1

Discovery Timeline

  • 2024-08-18 - CVE CVE-2024-6221 published to NVD
  • 2025-04-07 - Last updated in NVD database

Technical Details for CVE-2024-6221

Vulnerability Analysis

This vulnerability stems from an insecure default configuration in the Flask-CORS extension. The Access-Control-Allow-Private-Network header, introduced as part of the Private Network Access (PNA) specification, is designed to provide an additional layer of protection for resources on private networks. When this header is set to true, it explicitly permits cross-origin requests from public websites to access resources on private networks (such as localhost, intranet servers, or devices on local networks).

In Flask-CORS version 4.0.1, this header defaults to true, which violates the principle of secure defaults. This misconfiguration creates a pathway for malicious websites to initiate requests to internal services that should not be accessible from the public internet. The vulnerability is categorized under CWE-284 (Improper Access Control).

Root Cause

The root cause is an insecure default configuration where the Access-Control-Allow-Private-Network CORS header is automatically set to true without requiring explicit opt-in by the developer. This default setting contradicts security best practices, which mandate that access to private network resources should be explicitly granted rather than implicitly allowed.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can craft a malicious website that makes cross-origin requests to internal services. When a victim visits the attacker's website while connected to a private network, the browser will include the Access-Control-Request-Private-Network header in preflight requests. Due to the vulnerable Flask-CORS configuration automatically responding with Access-Control-Allow-Private-Network: true, the browser permits the cross-origin request to proceed, granting the attacker access to internal resources.

This attack pattern enables reconnaissance of internal network services, exfiltration of sensitive data from internal APIs, and potential exploitation of internal services that lack robust authentication mechanisms because they were designed to be accessible only from trusted internal networks.

Detection Methods for CVE-2024-6221

Indicators of Compromise

  • Unexpected cross-origin requests to internal Flask applications from external domains
  • HTTP response headers containing Access-Control-Allow-Private-Network: true without explicit configuration
  • Unusual traffic patterns from external IPs accessing internal services
  • Web server logs showing preflight OPTIONS requests with Access-Control-Request-Private-Network headers from untrusted origins

Detection Strategies

  • Audit Flask-CORS configurations in all Python applications to verify Access-Control-Allow-Private-Network settings
  • Implement network monitoring to detect cross-origin requests targeting internal services
  • Review web application firewall logs for suspicious CORS-related request patterns
  • Conduct dependency scanning to identify applications running Flask-CORS version 4.0.1

Monitoring Recommendations

  • Configure alerts for unusual CORS preflight request volumes to internal services
  • Monitor for responses containing Access-Control-Allow-Private-Network: true headers
  • Implement logging of all cross-origin requests to sensitive internal endpoints
  • Deploy network segmentation monitoring to detect unauthorized cross-network access attempts

How to Mitigate CVE-2024-6221

Immediate Actions Required

  • Upgrade Flask-CORS to a patched version that does not enable Access-Control-Allow-Private-Network by default
  • Explicitly set Access-Control-Allow-Private-Network to false in your Flask-CORS configuration
  • Review and restrict CORS origins configuration to only trusted domains
  • Audit all Flask applications for exposure to this misconfiguration

Patch Information

A fix has been committed to the Flask-CORS repository. The relevant commit can be found in the GitHub Commit Log. Organizations should update their Flask-CORS dependency to incorporate this fix. Additional details about the vulnerability discovery are available in the Huntr Bounty Announcement.

Workarounds

  • Explicitly configure Flask-CORS to disable the Access-Control-Allow-Private-Network header in your application settings
  • Implement network-level controls to restrict external access to internal services
  • Use a reverse proxy or web application firewall to filter or modify CORS headers before they reach clients
  • Consider network segmentation to isolate sensitive internal services from externally-facing applications
bash
# Configuration example for Flask application
# Explicitly disable Access-Control-Allow-Private-Network in Flask-CORS configuration
# Add to your Flask application initialization:
# CORS(app, supports_credentials=False, private_network=False)
# 
# Or via environment variable / config file:
export FLASK_CORS_PRIVATE_NETWORK=false

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechCorydolphin

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.64%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-284

  • NVD-CWE-Other
  • Technical References
  • GitHub Commit Log

  • Huntr Bounty Announcement
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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