Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/patrickhener/goshs/v2
  4. ›
  5. CVE-2026-42091

CVE-2026-42091: goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS

April 23, 2026 (updated May 4, 2026)

The PUT upload handler (httpserver/updown.go) lacks the CSRF token validation that was added to the POST upload handler during the GHSA-jrq5-hg6x-j6g3 fix. Combined with the unconditional Access-Control-Allow-Origin: * on the OPTIONS preflight handler (httpserver/server.go), any website can write arbitrary files to a goshs instance through the victim’s browser — bypassing network isolation (e.g. localhost, internal network).

References

  • github.com/advisories/GHSA-rhf7-wvw3-vjvm
  • github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32
  • github.com/patrickhener/goshs/releases/tag/v2.0.2
  • github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm
  • nvd.nist.gov/vuln/detail/CVE-2026-42091

Code Behaviors & Features

Detect and mitigate CVE-2026-42091 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.0.2

Fixed versions

  • 2.0.2

Solution

Upgrade to version 2.0.2 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/patrickhener/goshs/v2/CVE-2026-42091.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:51 +0000.