# CVE-2026-40884

> Vulnerability · severity: **CRITICAL** (CVSS 9.8).

## Description

goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP authentication bypass when the documented empty-username basic-auth syntax is used. If the server is started with -b ':pass' together with -sftp, goshs accepts that configuration but does not install any SFTP password handler. As a result, an unauthenticated network attacker can connect to the SFTP service and access files without a password. This vulnerability is fixed in 2.0.0-beta.6.

## Key facts

- **CVE ID:** CVE-2026-40884
- **Published:** 2026-04-21
- **CVSS severity:** CRITICAL
- **CVSS base score:** 9.8
- **CWE codes:** CWE-306

## Affected products

- `goshs:goshs`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40884

## Citation

> AI Analytics. CVE-2026-40884. Retrieved 2026-07-21 from https://api.ai-analytics.org/cve/CVE-2026-40884. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*