Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/patrickhener/goshs/v2
  4. ›
  5. CVE-2026-40883

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

April 14, 2026 (updated April 27, 2026)

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. I reproduced this on v2.0.0-beta.5.

References

  • github.com/advisories/GHSA-jrq5-hg6x-j6g3
  • github.com/patrickhener/goshs
  • github.com/patrickhener/goshs/security/advisories/GHSA-jrq5-hg6x-j6g3
  • nvd.nist.gov/vuln/detail/CVE-2026-40883

Code Behaviors & Features

Detect and mitigate CVE-2026-40883 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0-beta.4 before 2.0.0-beta.6

Fixed versions

  • 2.0.0-beta.6

Solution

Upgrade to version 2.0.0-beta.6 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/patrickhener/goshs/v2/CVE-2026-40883.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:06 +0000.