CVE-2026-40189: CWE-862: Missing Authorization in patrickhener goshs
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs ACL/basic-auth mechanism for directory listings and file reads, but it does not enforce the same authorization checks for state-changing routes. An unauthenticated attacker can upload files with PUT, upload files with multipart POST /upload, create directories with ?mkdir, and delete files with ?delete inside a .goshs-protected directory. By deleting the .goshs file itself, the attacker can remove the folder's auth policy and then access previously protected content without credentials. This results in a critical authorization bypass affecting confidentiality, integrity, and availability. This vulnerability is fixed in 2.0.0-beta.4.
AI Analysis
Technical Summary
CVE-2026-40189 is a critical authorization bypass vulnerability in the goshs SimpleHTTPServer written in Go. Versions before 2.0.0-beta.4 enforce ACL/basic-auth only on directory listings and file reads but omit authorization checks on state-changing HTTP routes (PUT, multipart POST /upload, ?mkdir, ?delete). This allows unauthenticated attackers to upload files, create directories, delete files, and remove the .goshs authentication file itself, effectively disabling folder-level access controls. The vulnerability impacts confidentiality, integrity, and availability of protected directories. The issue is resolved in goshs version 2.0.0-beta.4.
Potential Impact
An unauthenticated attacker can bypass authentication controls to perform unauthorized file uploads, directory creation, and file deletions within protected directories. By deleting the .goshs authentication file, the attacker can disable folder-level access controls, gaining access to previously protected content without credentials. This compromises the confidentiality, integrity, and availability of data served by goshs instances running vulnerable versions.
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.4 or later, where this authorization bypass vulnerability is fixed. Since no official patch links or vendor advisory content are provided, verify the upgrade from the official goshs repository or vendor source. Do not rely on partial mitigations as the vulnerability affects multiple state-changing routes.
CVE-2026-40189: CWE-862: Missing Authorization in patrickhener goshs
Description
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs ACL/basic-auth mechanism for directory listings and file reads, but it does not enforce the same authorization checks for state-changing routes. An unauthenticated attacker can upload files with PUT, upload files with multipart POST /upload, create directories with ?mkdir, and delete files with ?delete inside a .goshs-protected directory. By deleting the .goshs file itself, the attacker can remove the folder's auth policy and then access previously protected content without credentials. This results in a critical authorization bypass affecting confidentiality, integrity, and availability. This vulnerability is fixed in 2.0.0-beta.4.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40189 is a critical authorization bypass vulnerability in the goshs SimpleHTTPServer written in Go. Versions before 2.0.0-beta.4 enforce ACL/basic-auth only on directory listings and file reads but omit authorization checks on state-changing HTTP routes (PUT, multipart POST /upload, ?mkdir, ?delete). This allows unauthenticated attackers to upload files, create directories, delete files, and remove the .goshs authentication file itself, effectively disabling folder-level access controls. The vulnerability impacts confidentiality, integrity, and availability of protected directories. The issue is resolved in goshs version 2.0.0-beta.4.
Potential Impact
An unauthenticated attacker can bypass authentication controls to perform unauthorized file uploads, directory creation, and file deletions within protected directories. By deleting the .goshs authentication file, the attacker can disable folder-level access controls, gaining access to previously protected content without credentials. This compromises the confidentiality, integrity, and availability of data served by goshs instances running vulnerable versions.
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.4 or later, where this authorization bypass vulnerability is fixed. Since no official patch links or vendor advisory content are provided, verify the upgrade from the official goshs repository or vendor source. Do not rely on partial mitigations as the vulnerability affects multiple state-changing routes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T20:59:17.620Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d9581c1cc7ad14dae48c80
Added to database: 4/10/2026, 8:05:48 PM
Last enriched: 4/18/2026, 2:28:06 PM
Last updated: 5/26/2026, 1:37:41 AM
Views: 170
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.