Advisory

GO-2026-4950

Also known as: None

Summary

Authorization bypass via double-encoded paths in github.com/valyala/fasthttp

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-08-18 18:05 UTC
Modified
2026-08-19 15:41 UTC

Affected packages and fixes

github.com/valyala/fasthttp

Go · All systems

Affected

  • introduced 0, fixed 1.70.0 (semver)

Fixed versions

1.70.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences