6.5

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

Analyzed
AliasesGHSA-rhf7-wvw3-vjvmGO-2026-5625
Published 04-05-2026Last modified 05-05-2026

Vulnerability summary

CVE-2026-42091 is a medium (CVSS 6.5) Cross-Site Request Forgery (CSRF) vulnerability in goshs. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 12.5% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.23%
0%100%
Low · +0.06 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 04-05-2026
    PublishedVulnerability first disclosed.
  2. 05-05-2026
    Last modifiedVulnerability information updated.

Description

goshs is a SimpleHTTPServer written in Go. Prior to version 2.0.2, the PUT upload handler (httpserver/updown.go) lacks the CSRF token validation that was added to the POST upload handler during the CVE-2026-40883 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). This issue has been patched in version 2.0.2.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.23%

Chance of exploitation in the next 30 days

Percentile

13%

Versus all other CVEs

30-day change

Increase +0.06 pp

From 0.17% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Goshs

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Github.com/patrickhener1 product
  • goshs≤ 1.1.4 | All versions (No fix recorded)
Github.com/patrickhener/goshs1 product
  • v2< 2.0.2
Goshs1 product
Goshs.de1 product
  • goshsAll versions (No fix recorded)
Goshs.de/goshs1 product
  • v2< 2.0.2
Patrickhener1 product

6 vendors · 6 products

References

5 links