goshs: CSRF in state-changing GET routes enables authenticated file deletion and directory creation
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40883
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 10:13 UTC · Revision 1
Source evidence
goshs: CSRF in state-changing GET routes enables authenticated file deletion and directory creation
core-osv · Original sourcePublished 21 Apr 2026, 19:35 UTC
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.
osv:CVE-2026-40883
Complete source record
{
"id": "d7ba9cc74fb99b3f1ddf9d86712edf0e1c32f9f524043b12467782bd07d842c6",
"url": "https://osv.dev/vulnerability/CVE-2026-40883",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "goshs: CSRF in state-changing GET routes enables authenticated file deletion and directory creation",
"summary": "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.",
"evidence": "osv:CVE-2026-40883",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-40883",
"aliases": [
"CVE-2026-40883",
"GHSA-jrq5-hg6x-j6g3",
"GO-2026-5479"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/goshs-labs/goshs",
"type": "GIT",
"events": [
{
"introduced": "10f291dea17fb795f0008ed64c3ad7ab8c0470de"
},
{
"fixed": "2f6b5d601d494601fa43fad9a712ee6117b7dbcd"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.0.0-beta.4"
},
{
"fixed": "2.0.0-beta.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.0-beta.6"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v2.0.0-beta.5",
"v2.0.0-beta.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40883.json"
}
}
],
"modified": "2026-10-28T02:30:43.738076933Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40883.json",
"https://github.com/patrickhener/goshs/security/advisories/GHSA-jrq5-hg6x-j6g3",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40883"
],
"provider_metadata": {
"cwe_ids": [
"CWE-352"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40883.json"
}
},
"related_cves": [
{
"value": "CVE-2026-40883",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 511591,
"published_at": "2026-04-21T19:35:37.652+00:00"
}