Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. goshs.de/goshs/v2
  4. ›
  5. CVE-2026-50138

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

July 1, 2026

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.

References

  • github.com/advisories/GHSA-3whc-qvhv-xqjp
  • github.com/patrickhener/goshs/security/advisories/GHSA-3whc-qvhv-xqjp
  • nvd.nist.gov/vuln/detail/CVE-2026-50138

Code Behaviors & Features

Detect and mitigate CVE-2026-50138 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

go/goshs.de/goshs/v2/CVE-2026-50138.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:24 +0000.