CVE-2026-35393: Go Net Http Url Path To Filesystem Traversal

An HTTP request URL path (`req.URL.Path`) is used to construct a filesystem path that is passed to a file-system API (create, open, write, mkdir, stat, or remove) without verifying that the resolved path stays within an intended root directory. Because Go decodes percent-encoded segments (e.g. `%2e%2e`) into `req.URL.Path`, naive concatenation, splitting, or

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-35393-go-net-http-url-path-to-filesystem-traversal --engine opengrep

Description

An HTTP request URL path (`req.URL.Path`) is used to construct a filesystem path that is passed to a file-system API (create, open, write, mkdir, stat, or remove) without verifying that the resolved path stays within an intended root directory. Because Go decodes percent-encoded segments (e.g. `%2e%2e`) into `req.URL.Path`, naive concatenation, splitting, or