CVE-2026-42091: V2 · goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS
Affects github.com/patrickhener/goshs/v2Source GCVE Database
Not known to be exploited · CVSS 6.5 Medium : upgrade to 2.0.2 when convenient.
Data as of 27 Oct 2026, 01:25 UTC
- Patch
- Available – fixed in 2.0.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 4 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade github.com/patrickhener/goshs/v2 to 2.0.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/patrickhener/goshs/v2 | Affected
| Fixed in
|
| Gogithub.com/patrickhener/goshs | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in goshs version 2.0.2 that adds CSRF token validation to the PUT upload handler and addresses the wildcard CORS policy. Users should upgrade to version 2.0.2 or later to remediate this vulnerability.
Description
A vulnerability in github.com/patrickhener/goshs/v2 allows arbitrary file write via a missing CSRF token validation on the PUT upload handler combined with a wildcard CORS policy. This enables any website visited by a victim to write or overwrite files in the goshs webroot through the victim's browser. The issue affects versions prior to 2.0.2 and 1.1.4 and has been assigned CVE-2026-42091.
References
- github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-42091 (opens in a new tab)
- github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32 (opens in a new tab)
- github.com/patrickhener/goshs (opens in a new tab)
- github.com/patrickhener/goshs/releases/tag/v2.0.2 (opens in a new tab)