{"id":"GO-2026-4950","aliases":["GO-2026-4950"],"related":["CGA-62x2-9847-4gm6"],"kind":"vulnerability","state":"published","title":"Authorization bypass via double-encoded paths in github.com/valyala/fasthttp","summary":"In github.com/valyala/fasthttp before 1.70.0, ServeFile and ServeFS reinterpret filesystem paths as URIs, decoding percent-encoded sequences and treating characters like '?' and '#' as URI delimiters. In applications where authorization guards inspect ctx.Path() before passing paths to file-serving handlers, double-encoded path variants (e.g., /%2561dmin/export.csv) bypass access controls while still resolving to the protected file on disk.","summaryFormat":"markdown","summarySource":"go","descriptions":[{"lang":"en","text":"In github.com/valyala/fasthttp before 1.70.0, ServeFile and ServeFS reinterpret filesystem paths as URIs, decoding percent-encoded sequences and treating characters like '?' and '#' as URI delimiters. In applications where authorization guards inspect ctx.Path() before passing paths to file-serving handlers, double-encoded path variants (e.g., /%2561dmin/export.csv) bypass access controls while still resolving to the protected file on disk.","format":"markdown","source":"go"}],"published":"2026-08-18T18:05:09.000Z","modified":"2026-08-19T15:41:58.201Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.70.0"}],"ecosystem":"Go","package":"github.com/valyala/fasthttp","purl":"pkg:golang/github.com/valyala/fasthttp","source":"go"}],"references":[{"url":"https://github.com/golang/vulndb/issues/4950","tags":["report"],"sources":["go"]},{"url":"https://github.com/valyala/fasthttp/pull/2163","tags":["fix"],"sources":["go"]},{"url":"https://gist.github.com/thesmartshadow/af53acdfe0d6ce352d14eb86cecf5a08","tags":["web"],"sources":["go"]},{"url":"https://github.com/valyala/fasthttp/releases/tag/v1.70.0","tags":["web"],"sources":["go"]}],"credits":["Ali Firas (thesmartshadow)"],"sources":[{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4950","url":"https://pkg.go.dev/vuln/GO-2026-4950","licence":"CC-BY-4.0","modified":"2026-08-19T15:41:58.201Z"}],"updatedAt":"2026-11-25T22:56:24.594Z"}