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
    • 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-42345

CVE-2026-42345: FastGPT Auth Bypass Vulnerability

CVE-2026-42345 is an authentication bypass flaw in FastGPT AI Agent platform that allows attackers to bypass cloud metadata endpoint protections using URL encoding. This article covers technical details, versions 4.14.11 and prior, impact, and mitigation strategies.

Published: May 18, 2026

CVE-2026-42345 Overview

FastGPT is an open-source AI Agent building platform developed by labring. CVE-2026-42345 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] affecting FastGPT versions 4.14.11 and prior. The isInternalAddress() function in packages/service/common/system/utils.ts blocks cloud metadata endpoints using a fullUrl.startsWith() check against a hardcoded blocklist. Attackers can bypass this check using at least seven different URL encoding techniques that resolve to the same metadata service. At the time of publication, no patches are available.

Critical Impact

Authenticated attackers can reach cloud metadata endpoints and exfiltrate instance credentials from AWS, GCP, or Azure environments hosting FastGPT.

Affected Products

  • FastGPT versions 4.14.11 and prior
  • Self-hosted FastGPT deployments on AWS, GCP, and Azure
  • FastGPT instances with default CHECK_INTERNAL_IP configuration

Discovery Timeline

  • 2026-05-08 - CVE-2026-42345 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-42345

Vulnerability Analysis

The vulnerability resides in FastGPT's internal address validation logic. The isInternalAddress() function attempts to block requests to cloud metadata services by comparing the request URL prefix against a hardcoded blocklist. The implementation relies on fullUrl.startsWith(), which performs strict string matching against canonical metadata endpoint URLs.

This approach fails to canonicalize the URL before comparison. URL encoding variations, alternate IP representations, and hostname obfuscation techniques produce request targets that resolve to 169.254.169.254 but do not match the blocklist string prefixes. The advisory documents at least seven distinct encoding techniques that defeat this check.

A secondary control, isInternalIPv4/isInternalIPv6, would normally block private IP ranges. However, this broader check depends on the CHECK_INTERNAL_IP environment variable, which defaults to false rather than 'true'. The default configuration leaves the bypass paths fully exploitable.

Root Cause

The root cause is improper input validation combined with insecure default configuration. String-prefix matching cannot enforce URL allow/deny policy because HTTP clients decode and normalize URLs before resolution. The check operates on the pre-normalized form while the underlying fetch operates on the normalized form.

Attack Vector

An authenticated low-privilege user supplies a crafted URL to a FastGPT feature that performs server-side HTTP requests. The encoded URL bypasses isInternalAddress() because the literal prefix does not appear in the blocklist. FastGPT then issues a request to the cloud metadata service from the host instance. The response, containing IAM credentials or instance identity tokens, is returned to the attacker through the application response path.

The vulnerability requires network access to the FastGPT instance and valid low-privilege authentication. No user interaction is needed. The scope changes because credentials retrieved from metadata services grant access to resources outside the FastGPT process boundary.

Detection Methods for CVE-2026-42345

Indicators of Compromise

  • Outbound HTTP requests from FastGPT hosts to 169.254.169.254, metadata.google.internal, or metadata.azure.com
  • Application logs showing URL parameters containing percent-encoded sequences, decimal IP notation, or octal IP notation targeting link-local addresses
  • Unexpected use of FastGPT-issued IAM credentials from non-FastGPT source IPs

Detection Strategies

  • Inspect FastGPT request logs for user-supplied URLs containing %31%36%39, 0x, or non-standard host encodings
  • Correlate FastGPT process network connections against the cloud provider metadata IP range at the host or VPC flow log level
  • Alert on cloud audit events where FastGPT instance role credentials are used from unexpected geographic regions or services

Monitoring Recommendations

  • Enable VPC flow logs and forward to a centralized analytics platform for metadata endpoint access review
  • Monitor IMDS (Instance Metadata Service) access patterns and enforce IMDSv2 session-token requirements on AWS
  • Track FastGPT outbound destinations and baseline expected third-party API endpoints

How to Mitigate CVE-2026-42345

Immediate Actions Required

  • Set the CHECK_INTERNAL_IP environment variable to the string 'true' to enable private IP range filtering
  • Enforce IMDSv2 on AWS EC2 instances hosting FastGPT to require session tokens for metadata access
  • Restrict FastGPT instance IAM roles to the minimum permissions needed for application operation
  • Place FastGPT behind an egress proxy that blocks link-local and private address ranges

Patch Information

No official patch is available at the time of publication. Monitor the GitHub Security Advisory GHSA-jhqw-944x-xh94 for updates from the FastGPT maintainers.

Workarounds

  • Block outbound traffic from FastGPT hosts to 169.254.169.254 and other cloud metadata endpoints via host firewall or security group
  • Deploy FastGPT in a network segment without access to cloud metadata services where feasible
  • Add a reverse proxy or WAF rule rejecting URL parameters containing encoded representations of 169.254.169.254
bash
# Configuration example: enable internal IP filtering and block metadata egress
export CHECK_INTERNAL_IP='true'

# AWS: enforce IMDSv2 on the host instance
aws ec2 modify-instance-metadata-options \
  --instance-id i-xxxxxxxx \
  --http-tokens required \
  --http-endpoint enabled

# Linux host firewall: drop egress to link-local metadata service
iptables -A OUTPUT -d 169.254.169.254 -j DROP

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechFastgpt

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40351: FastGPT Auth Bypass Vulnerability

  • CVE-2026-40352: FastGPT Auth Bypass Vulnerability

  • CVE-2026-40252: FastGPT Auth Bypass Vulnerability

  • CVE-2026-34162: FastGPT Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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