# GO-2026-4950: Authorization bypass via double-encoded paths in github.com/valyala/fasthttp

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-18T18:05:09.000Z
- Modified: 2026-08-19T15:41:58.201Z
- Related: CGA-62x2-9847-4gm6

## 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.

(As written by Go Vulnerability Database.)

## Affected

- github.com/valyala/fasthttp (Go): before 1.70.0

## References

- <https://github.com/golang/vulndb/issues/4950> (report)
- <https://github.com/valyala/fasthttp/pull/2163> (fix)
- <https://gist.github.com/thesmartshadow/af53acdfe0d6ce352d14eb86cecf5a08> (web)
- <https://github.com/valyala/fasthttp/releases/tag/v1.70.0> (web)

## Sources

- Go Vulnerability Database: [GO-2026-4950](https://pkg.go.dev/vuln/GO-2026-4950), CC-BY-4.0, modified 2026-08-19

---

Page: https://cve.day/GO-2026-4950 · Whole record: https://cve.day/GO-2026-4950.json · Rebuilt by cve.day 2026-11-25T22:56:24.594Z
