Goshs · Goshs · CVE-2026-40189
**Name of the Vulnerable Software and Affected Versions**
goshs versions prior to 2.0.0-beta.4
**Description**
goshs fails to enforce the per-folder `.goshs` Access Control List (ACL) and basic authentication mechanism for state-changing routes. While authorization is correctly applied to directory listings and file reads, it is bypassed during operations that modify the server state. An unauthenticated attacker can exploit this to upload files via the `PUT` method or multipart `POST /upload` endpoint, create directories using the `?mkdir` parameter, and delete files using the `?delete` parameter within a protected directory. Furthermore, an attacker can delete the `.goshs` file itself to remove the folder's authentication policy, subsequently granting unauthorized access to previously protected content. This issue affects confidentiality, integrity, and availability.
**Recommendations**
Update goshs to version 2.0.0-beta.4.
As a temporary mitigation, restrict access to the `PUT` method, the `/upload` endpoint, and the `?mkdir` and `?delete` parameters.