Skip to content

← Public intelligence

Go package

github.com/valyala/fasthttp

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. UnratedGoPublished

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

    Affected
    • Go github.com/valyala/fasthttp < 1.70.0
    Fixed in
    1.70.0· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 1.70.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  2. High, CVSS 7.5GoPublished

    Path traversal in github.com/valyala/fasthttp

    CVE-2022-21221 · GHSA-fx95-883v-4q4h

    Affected
    • Go github.com/valyala/fasthttp < 1.34.0
    Fixed in
    1.34.0· Vendor fix available
    Issue
    The package github.com/valyala/fasthttp before 1.34.0 is vulnerable to Directory Traversal via the ServeFile function, due to improper sanitization. It is possible to be exploited by using a backslash %5c character in the path. Note: This security issue impacts Windows users only.

    Recommended action: Upgrade to 1.34.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →