CVE-2026-34581: Goshs Unvalidated Path Traversal

Manually concatenating strings derived from the HTTP request path (e.g. `req.URL.Path`) into filesystem paths can allow an attacker to write or read arbitrary files on the local system. Ensure all paths derived from user input are appropriately bounded to a base directory (e.g. by using `filepath.Clean` and comparing prefixes, or `filepath.Base` for only bas

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-34581-goshs-unvalidated-path-traversal --engine opengrep

Description

Manually concatenating strings derived from the HTTP request path (e.g. `req.URL.Path`) into filesystem paths can allow an attacker to write or read arbitrary files on the local system. Ensure all paths derived from user input are appropriately bounded to a base directory (e.g. by using `filepath.Clean` and comparing prefixes, or `filepath.Base` for only bas