Advisory record · GHSA-rhf7-wvw3-vjvm

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

CVSS 6.5 MediumEPSS 0.0016 · 5th percentile

Published by the GitHub Advisory Database at 23 Apr 2026, 14:28 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/patrickhener/goshs/v2Go<2.0.22.0.2
github.com/patrickhener/goshsGo<=1.1.4No fixed version yet
Identifiers
GHSA-rhf7-wvw3-vjvm · CVE-2026-42091 · GO-2026-5625
Weakness (CWE)
CWE-352
Published
23 Apr 2026
Updated
25 Jun 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The goshs package (github.com/patrickhener/goshs/v2) before 2.0.2 is vulnerable. Its PUT upload handler skips the CSRF check that the POST upload handler has, and its OPTIONS preflight response allows any origin. A website a user visits can therefore write or overwrite files in the goshs webroot through the user's browser, including on localhost or internal networks. Upgrade to version 2.0.2. The older github.com/patrickhener/goshs module, versions 1.1.4 and earlier, is also affected, and no fixed version is listed for it.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0016, the 5th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:06 UTC First seen by agentprime
  2. 31 Oct 2026, 15:06 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.