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-40885

CVE-2026-40885: goshs Information Disclosure Vulnerability

CVE-2026-40885 is an information disclosure flaw in goshs that leaks file-based ACL credentials through its public collaborator feed. This post covers the technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40885 Overview

CVE-2026-40885 is an Information Leakage vulnerability affecting goshs, a SimpleHTTPServer implementation written in Go. This vulnerability allows unauthenticated attackers to capture file-based ACL credentials through the public collaborator feed when the server is deployed without global basic authentication enabled.

Critical Impact

Attackers can intercept folder-specific basic-auth credentials and replay them to gain unauthorized read, upload, overwrite, and delete access to protected file subtrees.

Affected Products

  • goshs versions 2.0.0-beta.4 to 2.0.0-beta.5

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40885 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40885

Vulnerability Analysis

This vulnerability stems from improper handling of authentication credentials in goshs's collaborator feed mechanism. When goshs is deployed without global basic authentication, requests to .goshs-protected folders are logged before authorization checks are enforced. The collaborator websocket then broadcasts raw request headers, including the Authorization header containing basic-auth credentials.

This information exposure flaw (CWE-200) allows an unauthenticated observer to passively monitor the websocket feed and capture victims' folder-specific credentials as they authenticate. The captured credentials can then be replayed to gain full access to protected directory subtrees.

Root Cause

The root cause is a race condition in the authorization flow where request logging occurs before authentication validation. The collaborator websocket was designed to share request information among users but fails to sanitize sensitive authentication headers before broadcasting. This architectural flaw exposes credentials to any connected websocket client, regardless of their authentication status.

Attack Vector

The attack is network-based and requires the following conditions:

  1. The goshs server must be deployed without global basic authentication
  2. The server must have folder-specific ACL protection configured using .goshs-protected directories
  3. An attacker must connect to the collaborator websocket feed
  4. A legitimate user must authenticate to a protected folder while the attacker is monitoring

Once these conditions are met, the attacker passively receives the victim's Authorization header through the websocket broadcast. The captured base64-encoded credentials can then be replayed to authenticate and perform file operations including reading, uploading, overwriting, and deleting files within the protected subtree.

For detailed technical information about the vulnerability mechanism, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-40885

Indicators of Compromise

  • Unusual websocket connections from unknown IP addresses to the goshs collaborator feed
  • Multiple authentication attempts to protected folders from previously unseen sources following legitimate user access
  • Log entries showing credential replay patterns with identical authorization headers from different source IPs

Detection Strategies

  • Monitor websocket connection logs for suspicious clients connecting to the collaborator feed without subsequent authenticated requests
  • Implement network traffic analysis to detect authorization header extraction patterns
  • Review access logs for protected folder access originating from IP addresses that first appeared as websocket observers

Monitoring Recommendations

  • Enable comprehensive logging for all websocket connections to the collaborator feed
  • Configure alerting for authentication attempts to protected folders from new IP addresses within short timeframes
  • Deploy network intrusion detection signatures to identify credential replay attack patterns

How to Mitigate CVE-2026-40885

Immediate Actions Required

  • Upgrade goshs to version 2.0.0-beta.6 or later immediately
  • Enable global basic authentication on all goshs deployments to prevent unauthorized websocket access
  • Rotate all folder-specific ACL credentials that may have been exposed

Patch Information

The vulnerability has been fixed in goshs version 2.0.0-beta.6. Users should upgrade to this version or later to ensure protection. The fix addresses the authorization flow to ensure credentials are not broadcast through the collaborator websocket. For more details, see the GitHub Security Advisory.

Workarounds

  • Deploy goshs with global basic authentication enabled (-P flag with -u and -p credentials) to prevent unauthenticated websocket access
  • Disable the collaborator feature if not required for your deployment
  • Place goshs behind a reverse proxy that handles authentication before requests reach the application
  • Implement network-level access controls to restrict websocket endpoint access to trusted clients only
bash
# Enable global basic authentication to prevent unauthorized websocket access
goshs -P -u admin -p your_secure_password

# Alternative: Deploy behind nginx with authentication
# nginx.conf snippet
# location /ws {
#     auth_basic "Restricted";
#     auth_basic_user_file /etc/nginx/.htpasswd;
#     proxy_pass http://localhost:8000;
#     proxy_http_version 1.1;
#     proxy_set_header Upgrade $http_upgrade;
#     proxy_set_header Connection "upgrade";
# }

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGoshs

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/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
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40903: goshs Information Disclosure Vulnerability

  • CVE-2026-40884: goshs SFTP Authentication Bypass Flaw

  • CVE-2026-40883: goshs SimpleHTTPServer CSRF Vulnerability

  • CVE-2026-40876: goshs SFTP Path Traversal Vulnerability
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