Vulnerability · Published Aug 18, 2026 · Assigned by GitHub_M
CVE-2026-50138goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
High 8.1
In plain English
A high-severity improper access control in goshs from patrickhener. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
goshs is a SimpleHTTPServer written in Go. Prior to version 2.1.0, when `goshs` is launched with WebDAV enabled (`-w`), the mode-restriction flags `--read-only`, `--upload-only`, and `--no-delete` are enforced only on the primary HTTP port. The WebDAV port is wired straight to `golang.org/x/net/webdav.Handler` with no equivalent guard, so an authenticated WebDAV client can `PUT`, `DELETE`, `MKCOL`, `MOVE`, and `COPY` despite the operator's stated intent. Version 2.1.0 patches the issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | goshs.de/goshs | no fix listed | GO-2026-5878 |
| Go | goshs.de/goshs/v2 | 2.1.0 | GHSA-3whc-qvhv-xqjp |
| Go | goshs.de/goshs/v2 | 2.1.0 | GO-2026-5878 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| patrickhener | goshs | < 2.1.0 |
Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp x_refsource_CONFIRM