8.1

CVE-2026-40883: goshs: CSRF in state-changing GET routes enables authenticated file deletion and directory creation

Analyzed
AliasesGHSA-jrq5-hg6x-j6g3GO-2026-5479
Published 21-04-2026Last modified 21-04-2026

Vulnerability summary

CVE-2026-40883 is a high (CVSS 8.1) Cross-Site Request Forgery (CSRF) vulnerability in goshs. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.6% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
42/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.1/10
010
High · v3.1 (NVD)
EPSS score
0.19%
0%100%
Low · +0.05 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. 21-04-2026
    PublishedVulnerability first disclosed.
  2. 21-04-2026
    Last modifiedVulnerability information updated.

Description

goshs is a SimpleHTTPServer written in Go. From 2.0.0-beta.4 to 2.0.0-beta.5, goshs contains a cross-site request forgery issue in its state-changing HTTP GET routes. An external attacker can cause an already authenticated browser to trigger destructive actions such as ?delete and ?mkdir because goshs relies on HTTP basic auth alone and performs no CSRF, Origin, or Referer validation for those routes. This vulnerability is fixed in 2.0.0-beta.6.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

Increase +0.05 pp

From 0.14% 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
  • goshsAll versions (No fix recorded)
Github.com/patrickhener/goshs1 product
  • v2≥ 2.0.0-beta.4, < 2.0.0-beta.6
Goshs1 product
  • goshs2.0.0:beta4 | 2.0.0:beta5
Patrickhener1 product
  • goshs≥ 2.0.0-beta.4, < 2.0.0-beta.6

4 vendors · 4 products

References

3 links