{"id":"GO-2026-4950","revision":"d300cdf5c13e47439eabba59e66c5b78","records":[{"revision":"d300cdf5c13e47439eabba59e66c5b78","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-4950","aliases":[],"title":"Authorization bypass via double-encoded paths in github.com/valyala/fasthttp","description":"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.","state":0,"publishedAt":"2026-08-18T18:05:09+00:00","modifiedAt":"2026-08-19T15:41:58.2016792+00:00","affected":[{"ecosystem":"Go","name":"github.com/valyala/fasthttp","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.70.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/golang/vulndb/issues/4950","https://github.com/valyala/fasthttp/pull/2163","https://gist.github.com/thesmartshadow/af53acdfe0d6ce352d14eb86cecf5a08","https://github.com/valyala/fasthttp/releases/tag/v1.70.0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-4950","license":"OSV · upstream source license applies","key":"osv:GO-2026-4950","identifiers":["GO-2026-4950"]},"retained":false,"historicalAffected":[]}],"coverage":[]}