Skip to main content
VulnerabilityPublished Updated

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

0
Authoritative record:CVE-2026-42091· Medium 6.5

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

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gogithub.com/patrickhener/goshs/v2Affected
  • <2.0.2
Fixed in
  • 2.0.2
Gogithub.com/patrickhener/goshsAffected
  • <=1.1.4
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

Community reviews

Loading reviews…