CVE-2026-40189: CWE-862: Missing Authorization in patrickhener goshs
The goshs SimpleHTTPServer prior to version 2. 0. 0-beta. 4 has a critical authorization bypass vulnerability. While goshs enforces per-folder ACL/basic-auth for directory listings and file reads, it fails to enforce authorization on state-changing routes such as file uploads, directory creation, and file deletion. An unauthenticated attacker can exploit this to upload or delete files and remove the folder's authentication policy, gaining unauthorized access to protected content. This vulnerability affects confidentiality, integrity, and availability of the server. It is fixed in version 2. 0. 0-beta.
AI Analysis
Technical Summary
CVE-2026-40189 is a critical authorization bypass vulnerability in the goshs SimpleHTTPServer written in Go. Versions prior to 2.0.0-beta.4 enforce ACL/basic-auth only on directory listings and file reads but do not enforce authorization on state-changing HTTP routes such as PUT, multipart POST /upload, ?mkdir, and ?delete. This allows unauthenticated attackers to upload files, create directories, delete files, and remove the .goshs file that contains the folder's auth policy, effectively disabling authentication and exposing protected content. The vulnerability impacts confidentiality, integrity, and availability. The issue is resolved in goshs version 2.0.0-beta.4.
Potential Impact
An unauthenticated attacker can bypass authorization controls to perform unauthorized file uploads, directory creation, and file deletions within protected directories. By deleting the .goshs authorization file, the attacker can disable folder-level authentication, gaining access to previously protected content without credentials. This leads to a critical compromise of confidentiality, integrity, and availability of the affected server.
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.4 or later, where this authorization bypass vulnerability is fixed. Since no official patch link or advisory is provided, verify the upgrade from the official project source. Until upgraded, restrict access to goshs servers to trusted networks to reduce exposure.
CVE-2026-40189: CWE-862: Missing Authorization in patrickhener goshs
Description
The goshs SimpleHTTPServer prior to version 2. 0. 0-beta. 4 has a critical authorization bypass vulnerability. While goshs enforces per-folder ACL/basic-auth for directory listings and file reads, it fails to enforce authorization on state-changing routes such as file uploads, directory creation, and file deletion. An unauthenticated attacker can exploit this to upload or delete files and remove the folder's authentication policy, gaining unauthorized access to protected content. This vulnerability affects confidentiality, integrity, and availability of the server. It is fixed in version 2. 0. 0-beta.
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 prior to 2.0.0-beta.4 enforce ACL/basic-auth only on directory listings and file reads but do not enforce authorization on state-changing HTTP routes such as PUT, multipart POST /upload, ?mkdir, and ?delete. This allows unauthenticated attackers to upload files, create directories, delete files, and remove the .goshs file that contains the folder's auth policy, effectively disabling authentication and exposing protected content. The vulnerability impacts confidentiality, integrity, and availability. The issue is resolved in goshs version 2.0.0-beta.4.
Potential Impact
An unauthenticated attacker can bypass authorization controls to perform unauthorized file uploads, directory creation, and file deletions within protected directories. By deleting the .goshs authorization file, the attacker can disable folder-level authentication, gaining access to previously protected content without credentials. This leads to a critical compromise of confidentiality, integrity, and availability of the affected server.
Mitigation Recommendations
Upgrade goshs to version 2.0.0-beta.4 or later, where this authorization bypass vulnerability is fixed. Since no official patch link or advisory is provided, verify the upgrade from the official project source. Until upgraded, restrict access to goshs servers to trusted networks to reduce exposure.
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/10/2026, 8:20:47 PM
Last updated: 4/10/2026, 11:05:43 PM
Views: 6
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.