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-2025-63388

CVE-2025-63388: Langgenius Dify Auth Bypass Vulnerability

CVE-2025-63388 is an authentication bypass flaw in Langgenius Dify v1.9.1 caused by CORS misconfiguration that allows unauthorized cross-origin requests. This article covers technical details, affected systems, and mitigation.

Published: March 24, 2026

CVE-2025-63388 Overview

A Cross-Origin Resource Sharing (CORS) misconfiguration vulnerability exists in Dify v1.9.1 within the /console/api/system-features endpoint. The vulnerability stems from an overly permissive CORS policy that reflects arbitrary Origin headers and sets Access-Control-Allow-Credentials: true, allowing any external domain to make authenticated cross-origin requests. This configuration flaw can enable attackers to bypass same-origin policy protections and potentially access sensitive data or perform actions on behalf of authenticated users.

Critical Impact

This vulnerability allows any external domain to make authenticated cross-origin requests, potentially enabling data theft or unauthorized actions on behalf of legitimate users through malicious websites.

Affected Products

  • Langgenius Dify v1.9.1
  • Langgenius Dify Node.js deployments

Discovery Timeline

  • 2025-12-18 - CVE-2025-63388 published to NVD
  • 2026-01-28 - Last updated in NVD database

Technical Details for CVE-2025-63388

Vulnerability Analysis

This CORS misconfiguration vulnerability occurs when the Dify application's /console/api/system-features endpoint reflects arbitrary Origin headers in its CORS response without proper validation. When combined with the Access-Control-Allow-Credentials: true header, browsers will include cookies and other authentication credentials with cross-origin requests from any domain.

The vulnerability allows an attacker to craft a malicious website that, when visited by an authenticated Dify user, can make requests to the vulnerable endpoint and read the response data. This effectively bypasses the browser's same-origin policy, which is designed to prevent such cross-domain data access.

Note: The supplier (Langgenius) disputes this vulnerability, stating that "sending requests with credentials does not provide any additional access compared to unauthenticated requests."

Root Cause

The root cause is improper implementation of CORS headers in the /console/api/system-features endpoint. Rather than implementing a whitelist of trusted origins or blocking credential-bearing requests from untrusted origins, the application reflects the incoming Origin header value directly in the Access-Control-Allow-Origin response header while simultaneously enabling credential sharing.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction beyond visiting a malicious website. An attacker can exploit this vulnerability by:

  1. Creating a malicious webpage that contains JavaScript code to make cross-origin requests to the vulnerable Dify endpoint
  2. Enticing an authenticated Dify user to visit the malicious page
  3. The browser automatically includes the user's session cookies with the request due to Access-Control-Allow-Credentials: true
  4. The attacker's JavaScript can then read the response data, potentially exposing sensitive system configuration information

Technical details and proof-of-concept examples are available in the GitHub Gist PoC Code and GitHub Gist Payload Example.

Detection Methods for CVE-2025-63388

Indicators of Compromise

  • Unusual cross-origin requests to /console/api/system-features from unexpected referrer domains
  • Web application logs showing requests with Origin headers from untrusted or unknown domains
  • Anomalous access patterns to system configuration endpoints from authenticated sessions

Detection Strategies

  • Monitor web server access logs for requests to /console/api/system-features with suspicious or unknown Origin headers
  • Implement Content Security Policy (CSP) reporting to detect unauthorized cross-origin resource loading attempts
  • Deploy web application firewall (WAF) rules to flag requests with mismatched Origin and Referer headers
  • Audit CORS response headers in application responses to identify overly permissive configurations

Monitoring Recommendations

  • Enable detailed logging for all API endpoints, particularly those returning sensitive system information
  • Set up alerts for unusual patterns of cross-origin requests to authenticated endpoints
  • Regularly audit CORS configurations across all API endpoints using automated security scanning tools

How to Mitigate CVE-2025-63388

Immediate Actions Required

  • Review and restrict the CORS configuration for the /console/api/system-features endpoint to allow only trusted origins
  • Implement an explicit allowlist of permitted origins rather than reflecting arbitrary Origin headers
  • Consider removing Access-Control-Allow-Credentials: true unless absolutely necessary for legitimate cross-origin functionality
  • Monitor the Dify GitHub Discussions for vendor updates and patches

Patch Information

No official patch has been released at this time. The vendor (Langgenius) disputes the severity of this vulnerability. Users should monitor the Dify GitHub Discussions for any future security updates or configuration guidance.

Workarounds

  • Configure a reverse proxy (such as nginx or Apache) to override CORS headers and implement a proper origin allowlist
  • Use network-level controls to restrict access to the Dify console API from trusted networks only
  • Implement additional authentication layers such as IP whitelisting for administrative endpoints
  • Deploy a Web Application Firewall (WAF) to filter requests with untrusted Origin headers
bash
# Example nginx configuration to restrict CORS origins
# Add to your nginx server block for the Dify application

location /console/api/system-features {
    # Only allow specific trusted origins
    set $cors_origin "";
    if ($http_origin ~* "^https://(trusted-domain\.com|another-trusted\.org)$") {
        set $cors_origin $http_origin;
    }
    
    add_header 'Access-Control-Allow-Origin' $cors_origin always;
    add_header 'Access-Control-Allow-Credentials' 'true' always;
    add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
    
    proxy_pass http://dify_backend;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLanggenius Dify

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.01%

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

  • CWE-346
  • Technical References
  • GitHub Gist PoC Code

  • GitHub Gist Payload Example

  • GitHub Discussion on Dify
  • Related CVEs
  • CVE-2025-63386: Langgenius Dify Auth Bypass Vulnerability

  • CVE-2025-56157: Langgenius Dify Auth Bypass 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