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

- Severity: Medium 6.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T22:28:44.000Z
- Modified: 2026-10-26T00:10:00.150Z
- Also known as: GHSA-jrq5-hg6x-j6g3, GO-2026-5479
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- patrickhener goshs: >= 2.0.0-beta.4, < 2.0.0-beta.6
- github.com/patrickhener/goshs/v2 (Go): from 2.0.0-beta.4 before 2.0.0-beta.6
- github.com/patrickhener/goshs (Go): all versions
- goshs goshs: 2.0.0

## Every score

- GitHub_M: CVSS:4.0 6.1 Medium `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`
- GitHub: CVSS:3.1 8.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/patrickhener/goshs/security/advisories/GHSA-jrq5-hg6x-j6g3> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40883> (advisory)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2026-40883](https://www.cve.org/CVERecord?id=CVE-2026-40883), CVE Terms of Use, modified 2026-04-21
- GitHub Advisory Database: [GHSA-jrq5-hg6x-j6g3](https://github.com/advisories/GHSA-jrq5-hg6x-j6g3), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5479](https://pkg.go.dev/vuln/GO-2026-5479), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40883](https://nvd.nist.gov/vuln/detail/CVE-2026-40883), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40883 · Whole record: https://cve.day/CVE-2026-40883.json · Rebuilt by cve.day 2026-11-25T22:59:19.140Z
