Skip to content

fix(deps): update module github.com/gofiber/fiber/v2 to v3 - #9

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-gofiber-fiber-v2-3.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-gofiber-fiber-v2-3.x

Conversation

@renovate

@renovate renovate Bot commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
github.com/gofiber/fiber/v2 v2.52.16 → v3.7.0 age confidence

Release Notes

gofiber/fiber (github.com/gofiber/fiber/v2)

v3.7.0

Compare Source

🚀 New

  • Update fasthttp to v1.78.0 (#​4779, #​4803, #​4862)
    fasthttp v1.78.0 (from v1.75.0) hardens request framing, multipart parsing, redirects and file serving, and speeds up path normalization, query parsing, header setters and Client.Do.
    https://github.com/valyala/fasthttp/releases/tag/v1.78.0
  • Support map fields in query and form binding (#​4788)
    Struct fields of type map[string]T now bind from query strings and form bodies; attributes[color] and attributes.color both give the key color.
    type Filter struct {
        Attributes map[string]string   `query:"attributes"` // ?attributes[color]=red&attributes.size=m
        Tags       map[string][]string `query:"tags"`       // ?tags[sale]=yes&tags[sale]=new
        Limits     map[string]int      `query:"limits"`     // ?limits[max]=5
    }
    https://docs.gofiber.io/api/bind#map-fields
  • Add AllowSymlinksOutsideRoot to the static middleware (#​4803)
    A root on disk is now confined: symbolic links that leave it, and absolute ones, are handled like missing files unless AllowSymlinksOutsideRoot is set.
    app.Use("/assets", static.New("./public", static.Config{
        AllowSymlinksOutsideRoot: true, // default: false
    }))
    https://docs.gofiber.io/middleware/static#config
  • Let proxy.DoRedirects and the Fiber client drop extra sensitive headers on a redirect (#​4800)
    New opt-in RedirectSensitiveHeaders on proxy.SecurityPolicy and the client (Client, Request, Config) names headers such as X-Api-Key that a redirect to another origin (proxy) or host (client) drops; empty by default.
    policy := proxy.DefaultSecurityPolicy()
    policy.RedirectSensitiveHeaders = []string{"X-Api-Key", "X-Auth-Token"}
    proxy.WithSecurityPolicy(policy)
    
    cli := client.New().SetRedirectSensitiveHeaders("X-Api-Key")
    https://docs.gofiber.io/middleware/proxy#headers-on-a-cross-origin-redirect

🧹 Updates

  • Share host splitting and IDNA folding (#​4851)
  • Align forwarded header list parsing (#​4847)
  • Share forwarded IP scanning and ignore empty elements (#​4820)
  • Share redirect URL normalization (#​4824)
  • Speed up media type parameter parsing (#​4807)
  • Avoid allocations for empty typed lookups (#​4852)
  • Consolidate control-character scanning (#​4783)
  • cache/limiter: Walk Cache-Control lists with headerlist and write Retry-After without a string (#​4833)
  • cors/csrf: Share origin allow-list parsing (#​4836)
  • encryptcookie: Build the AEAD once per middleware instead of per cookie (#​4838)
  • etag: Checksum bodies with slicing-by-8 (#​4794)
  • limiter: Format rate-limit header values without allocating (#​4822)
  • proxy: Copy the forwarder name before storing it in the refused-request test (#​4819)
  • redirect/rewrite: Share pattern compilation (#​4846)
  • Share the client cookie jar host normalization (#​4844)
  • Share the value-redaction helper across middleware (#​4821)
  • Deduplicate the unit tests with shared helpers (#​4825)
  • Use a nolint:revive directive on App.Handler (#​4831)

🐛 Fixes

  • Stop optional path parameters from swallowing a slash (#​4778)
  • Stat the index for directory SendFile ranges and move the path guards into internal/fspath (#​4769)
  • Skip empty forwarded host and proto elements and restore the Next loop (#​4856)
  • Preserve nil first field lines when joining headers (#​4840)
  • Return an empty charset when its value is not a token (#​4781)
  • Preserve redirects and errors in Fresh checks (#​4811)
  • Trim the whitespace around comma-split header values in Bind (#​4793)
  • Reject out-of-range int and uint in generic parsers on 32-bit (#​4832)
  • Make Links add to the Link header instead of replacing it (#​4829)
  • Serve a request with a TLS state over TLS in app.Test (#​4839)
  • Send the measured Content-Length of an unsized body in app.Test (#​4830)
  • Make Listen return when GracefulContext is done during startup (#​4770)
  • cache: End cached entries when a revalidation is refused with 401, 403 or 407 (#​4785)
  • cache: Release the lock when CacheInvalidator panics and simplify the lock flow (#​4765)
  • cache/proxy/session: Close the gaps found auditing the recent merges (#​4855)
  • compress: Honor repeated and quoted response Cache-Control lines (#​4802)
  • encryptcookie: Handle duplicate cookie names (#​4774)
  • hostauthorization: Compare IPv6 hosts by address, not by spelling (#​4798)
  • hostauthorization: Bound the port value, not its digit count (#​4796)
  • idempotency: Exclude unchanged upstream headers from storage (#​4834)
  • idempotency/proxy: Stop cookie replay and refuse path parameters (#​4791)
  • keyauth: Omit the Bearer error parameters from the challenge when no credentials are sent (#​4837)
  • limiter: Fix spec mismatches and consolidate its code and tests (#​4762)
  • limiter/proxy: Fix key aliasing and the redirect, SSRF and Balancer issues (#​4784)
  • static: Refuse a path with an empty first segment on a root mount (#​4772)
  • Synchronize client cookie jar reads during initialization (#​4843)
  • Return each key once from the client's QueryParam.Keys and FormData.Keys (#​4776)
  • Copy client response header keys before reading their values (#​4771)
  • Fix header, body, routing and session handling defects (#​4850)

🛠️ Maintenance

20 changes
  • bump github.com/valyala/fasthttp from 1.77.0 to 1.78.0 in the fasthttp-modules group (#​4862)
  • bump github.com/shamaton/msgpack/v3 from 3.2.6 to 3.2.7 (#​4863)
  • bump github.com/gofiber/schema from 1.9.2 to 1.9.3 (#​4853)
  • bump github.com/gofiber/utils/v2 from 2.6.3 to 2.6.4 (#​4845)
  • bump go.yaml.in/yaml/v3 from 3.0.5 to 3.0.6 (#​4835)
  • bump github.com/gofiber/schema from 1.9.1 to 1.9.2 (#​4823)
  • bump github.com/fxamacker/cbor/v2 from 2.9.6 to 2.10.0 (#​4816)
  • bump golang.org/x/net from 0.61.0 to 0.62.0 in the golang-modules group across 1 directory (#​4812)
  • bump DavidAnson/markdownlint-cli2-action from 24.2.0 to 25.0.0 (#​4813)
  • bump github.com/gofiber/schema from 1.9.0 to 1.9.1 (#​4810)
  • bump github.com/gofiber/utils/v2 from 2.6.2 to 2.6.3 (#​4808)
  • bump github.com/valyala/fasthttp from 1.76.0 to 1.77.0 in the fasthttp-modules group (#​4803)
  • bump github.com/molecule-man/go-brrr from 1.3.0 to 1.3.1 (#​4805)
  • bump github.com/shamaton/msgpack/v3 from 3.2.5 to 3.2.6 (#​4804)
  • bump github.com/gofiber/schema from 1.8.8 to 1.9.0 (#​4787)
  • bump github.com/shamaton/msgpack/v3 from 3.2.4 to 3.2.5 (#​4786)
  • bump streetsidesoftware/cspell-action from 9.1.0 to 9.2.0 (#​4782)
  • bump github.com/valyala/fasthttp from 1.75.0 to 1.76.0 in the fasthttp-modules group (#​4779)
  • bump github.com/philhofer/fwd from 1.2.0 to 1.2.1 (#​4780)
  • bump github.com/shamaton/msgpack/v3 from 3.2.3 to 3.2.4 (#​4766)

📚 Documentation

  • Add a Migrate section to the README (#​4790)
  • Update ctx and intro examples (#​4806)
  • Explain bounding proxy-derived storage keys (#​4841)
  • Explain client and server redirect control-byte policies (#​4842)
  • logger: Explain the ignored SendStatus error in the fallback handler (#​4826)

📒 Documentation: https://docs.gofiber.io/

💬 Discord: https://gofiber.io/discord

Full Changelog: gofiber/fiber@v3.6.1...v3.7.0

Thank you @​10kartik, @​Alifarid0011, @​anqorithm, @​appdever01, @​arditxhuveli1, @​b84330808, @​Dev-next-gen, @​ElsiPotka, @​fadiromdhan3, @​fadiroot, @​gaby, @​helmipradita, @​IslamElsayed, @​kaankucukx, @​ninadsutrave, @​nk-batman21, @​PerryLink, @​Rachit-Gandhi, @​ReneWerner87, @​RS-ITACHI, @​via2004, @​YOGESH256 and @​yxshee for making this release possible.

v3.6.1

Compare Source

🧹 Updates

  • Consolidate media-type parameter parsing into internal/mediatype (#​4750)
  • Fix modernize and revive lint issues (#​4759)

🐛 Fixes

  • Fix client, session, basicauth and other bugs found in the audit (#​4752)

🛠️ Maintenance

  • bump github.com/gofiber/utils/v2 from 2.6.1 to 2.6.2 (#​4760)
  • bump github.com/klauspost/compress from 1.20.1 to 1.20.3 (#​4757)
  • bump github.com/molecule-man/go-brrr from 1.2.0 to 1.3.0 (#​4758)
  • bump the golang-modules group with 3 updates (#​4755)
  • bump release-drafter/release-drafter from 7.9.0 to 7.10.0 (#​4756)
  • bump actions/setup-node from 7.0.0 to 7.1.0 (#​4754)

📚 Documentation

  • Sync the documentation with the v3.6.0 code (#​4751)

📒 Documentation: https://docs.gofiber.io/

💬 Discord: https://gofiber.io/discord

Full Changelog: gofiber/fiber@v3.6.0...v3.6.1

Thank you @​alexandear, @​gaby, @​ninadsutrave and @​ReneWerner87 for making this release possible.

v3.6.0

Compare Source

⚡ Performance

Fiber v3.6.0 ships with fasthttp v1.75.0. With it, Fiber v3 is back on par with the speed of v2, despite the additional security mechanisms built in since then.

Time per request vs. v2 v3.5.0 (fasthttp v1.73.0) v3.6.0 (fasthttp v1.75.0)
fasthttp only +18% -5%
Static route +16% -14%
Route parameter +15% -13%
Middleware chain +13% -12%
Header lookup +29% +3%
Locals +33% +5%
JSON response +6% -3%
JSON bind +14% -2%
Median of all 22 scenarios +10% -5%

Negative is faster than v2. v3.6.0 was measured on main three days before the release.
All scenarios are published on our benchmarks page, where we now continuously make sure that v3 does not get slower again.
https://gofiber.github.io/benchmarks/

🚀 New

  • Add csrf.NewCrossOriginProtection for tokenless CSRF protection (#​4596)
    New tokenless middleware that rejects unsafe cross-origin browser requests by their Sec-Fetch-Site and Origin headers; no cookie, token or storage needed.
    app.Use(csrf.NewCrossOriginProtection(csrf.CrossOriginConfig{
        TrustedOrigins: []string{"https://admin.example.com"},
    }))
    https://docs.gofiber.io/middleware/csrf#cross-origin-protection-without-tokens
  • Update fasthttp to v1.75.0 (#​4667, #​4740)
    fasthttp v1.75.0 (from v1.73.0) parses and validates request headers in one pass, writes responses with fewer copies, serves cached files up to 8 KiB from memory and speeds up URI processing.
    https://github.com/valyala/fasthttp/releases/tag/v1.75.0
  • Raise default ReadBufferSize and WriteBufferSize to 8 KB (#​4715)
    ReadBufferSize and WriteBufferSize now default to 8192 bytes (was 4096), which also raises the default request header limit; explicitly configured values are kept.
    app := fiber.New(fiber.Config{
        ReadBufferSize:  4096, // previous default, now 8192
        WriteBufferSize: 4096, // previous default, now 8192
    })
    https://docs.gofiber.io/api/fiber#readbuffersize
  • Expand context, response and request helpers (#​4638)
    New helpers on Req, Res and Ctx such as Bearer, Origin, IsSafe, Del, StatusCode, GetCookies, Elapsed and RouteName; request helpers are now also reachable through c.Req().
    token := c.Bearer()   // "abc123" for "Authorization: Bearer abc123"
    c.Del("X-Powered-By") // remove a response header
    took := c.Elapsed()   // time spent on this request so far
    https://docs.gofiber.io/api/ctx
  • Add Endpoint() for middleware look-ahead (#​4601)
    New c.Endpoint() returns the route that will handle the request without advancing the handler chain (nil on 404/405).
    app.Use(func(c fiber.Ctx) error {
        if route := c.Endpoint(); route != nil {
            // enforce access control using route.Path or route.Name
        }
        return c.Next()
    })
    https://docs.gofiber.io/api/ctx#endpoint
  • Add ordered RuleList to the redirect and rewrite middleware (#​4621, #​4633)
    New RuleList []Rule in redirect and rewrite is tried in the order written, first match wins; the Rules map is deprecated and setting both panics.
    app.Use(redirect.New(redirect.Config{
        RuleList: []redirect.Rule{
            {From: "/old", To: "/new"},      // checked first
            {From: "/old/*", To: "/new/$1"}, // takes everything else
        },
    }))
    https://docs.gofiber.io/middleware/redirect#rule-order
  • Render configured templates to a writer (#​4594)
    New app.Render writes a template through the configured view engine to any io.Writer without creating an HTTP response, e.g. for SSE or HTMX partials.
    var buf bytes.Buffer
    if err := app.Render(&buf, "partial", fiber.Map{"Title": "update"}); err != nil {
        return err
    }
    https://docs.gofiber.io/api/app#render
  • Add final request hooks to the HTTP client (#​4595)
    New AddFinalRequestHook runs after the built-in hooks, immediately before the request is sent, when RawRequest holds the resolved URL, merged headers and serialized body.
    cc.AddFinalRequestHook(func(_ *client.Client, req *client.Request) error {
        raw := req.RawRequest
        raw.Header.Set("X-Signature", sign(raw.URI().RequestURI(), raw.URI().Host(), raw.Body()))
        return nil
    })
    https://docs.gofiber.io/client/hooks#final-request-hooks
  • Add SetLocal, a request-local store without the variadic's heap slice (#​4687)
    New c.SetLocal(key, value) stores a request-local value exactly like c.Locals(key, value), without the one-element slice that call allocates.
    https://docs.gofiber.io/api/ctx#setlocal
  • Add DisableFlashMessages and filter route candidates with a probe constant (#​4655)
    New fiber.Config option DisableFlashMessages turns off redirect flash messages and the per-request fiber_flash cookie scan (off by default); the router gains a precomputed probe-constant filter.
    app := fiber.New(fiber.Config{
        DisableFlashMessages: true, // default: false
    })
    https://docs.gofiber.io/api/fiber#disableflashmessages
  • Add source-aware extraction to extractors without a new struct field (#​4603)
    New extractors.Resolve returns the value together with the Source and Key of the chain child that produced it; the Extractor struct is unchanged.
    ex := extractors.Chain(extractors.FromHeader("X-API-Key"), extractors.FromQuery("api_key"))
    res, err := extractors.Resolve(ex, c)
    // res.Value, plus res.Source and res.Key of the child that won
    https://docs.gofiber.io/guide/extractors#source-aware-extraction

🧹 Updates

  • Require Go 1.26 (#​4654)
  • Filter large route buckets before loading routes and bind without building a map (#​4705)
  • Filter a route bucket by static path before loading the route (#​4688)
  • Consolidate route pattern preprocessing (#​4710)
  • Share route and client :name path delimiters (#​4636)
  • Normalize header keys in one pass and match canonical media types directly (#​4690)
  • Share streaming header join logic (#​4734)
  • Consolidate comma-list header scanning into internal/headerlist (#​4637)
  • Consolidate entity-tag parsing into internal/etag (#​4632)
  • Adopt utils/v2 helpers and cut per-request allocations in the hot path (#​4666)
  • cors/csrf: Consolidate origin matching into internal/origin (#​4653)
  • limiter: Lock keys per shard instead of globally (#​4702)
  • redirect/rewrite: Share capture substitution (#​4749)
  • session: Skip the gob re-encode when a session was only read (#​4703)
  • Cut the per-request cost of the extractors (#​4678)
  • Stabilize flaky tests in limiter, binder, cache, basicauth and the request sweeps (#​4729)
  • Close three test coverage gaps in logger, shutdown and docs (#​4615)
  • Add a regression test and docs example for CustomCtx overrides behind middleware (#​4598)
  • Add a regression test and docs note that Context() is not canceled on graceful shutdown (#​4599)
  • Trigger Dependabot in gofiber/benchmarks after releases (#​4682)

🐛 Fixes

  • Normalize request paths per RFC 3986 before routing and serve the routed path from the static middleware (#​4695)
  • Keep stray percents from forging escapes, root every request target and take the SendFile name literally (#​4719)
  • Let empty optional params yield to later required segments (#​4722)
  • Fix panic on route pattern with trailing escape character (#​4717)
  • Preserve names for merged multi-method routes (#​4663)
  • Fix nil pointer dereference when a domain-mounted sub-app contains a nested mount (#​4620)
  • Preserve path rewrites whose source aliases the current path, such as c.Path(c.Path()[4:]) (#​4674)
  • Escape parameter values in generated route URLs (#​4629)
  • Return ErrRouteNotRepresentable for parameter values a generated route URL cannot represent (#​4721)
  • Accept tab OWS in X-Forwarded-For and share one OWS trim helper (#​4735)
  • Treat Vary field names as case-insensitive (#​4642)
  • Unify cookie SameSite handling (#​4630)
  • Prevent unbounded handler growth when SendFile serves a function-backed fs.FS (#​4656)
  • Prevent typed-nil view engine panics (#​4662)
  • Report the real status for fasthttp-level request errors (#​4614)
  • Drain in-flight requests before Listen returns (#​4701)
  • basicauth: Equalize verification time across mixed hash algorithms (#​4726)
  • basicauth: Refuse a repeated Authorization field (#​4738)
  • basicauth/keyauth: Use HTTP quoted strings in auth challenges (#​4631)
  • cache: Delete stale entries after uncacheable revalidation (#​4590)
  • cache: Key entries by request scheme and host (#​4736)
  • cache: Replay Vary on cache hits and mark credential-keyed entries private (#​4744)
  • compress: Honor repeated Accept-Encoding and Cache-Control lines with the new HasHeaderValue helper (#​4708)
  • idempotency: Keep replayed response headers unsplit under EnableSplittingOnParsers (#​4693)
  • limiter: Bound the rate-limit key before it reaches storage (#​4677)
  • proxy: Apply the client's Connection listing to the request as received (#​4745)
  • proxy: Fold DomainForward's configured hostname to Punycode (#​4673)
  • proxy: Overwrite X-Real-IP in proxy.Balancer like the other forwarding helpers (#​4725)
  • proxy: Preserve IPv6 brackets in domain forwarding (#​4689)
  • redirect/rewrite: Read "$10" as the tenth capture in targets (#​4692)
  • session: Honor chain-level extractors and close three write-back holes (#​4679)
  • static: Align file resolution with routed paths (#​4712)
  • static: Reject partial wildcard matches that cross a path segment boundary (#​4728)
  • Decode a path parameter exactly once in FromParam (#​4626)
  • Anchor and escape client path parameter substitution (#​4625)
  • Keep a stale client Response from releasing a reused Request on Close (#​4659)
  • Parse malformed Set-Cookie attributes in the client in linear time (#​4658)
  • Make static, proxy, adaptor and rewrite act on the path the router matched (#​4720)
  • Fix RFC 9110/9112 compliance gaps in core, static and timeout (#​4747)
  • Fix correctness issues across core, router, binder, client and middleware (#​4652)

🛠️ Maintenance

41 changes
  • bump the golang-modules group with 2 updates (#​4748)
  • bump github.com/fxamacker/cbor/v2 from 2.9.4 to 2.9.6 (#​4746)
  • bump github.com/mattn/go-colorable from 0.1.15 to 0.1.16 (#​4743)
  • bump github.com/valyala/fasthttp from 1.74.0 to 1.75.0 in the fasthttp-modules group (#​4740)
  • bump github.com/molecule-man/go-brrr from 1.1.1 to 1.2.0 (#​4741)
  • bump release-drafter/release-drafter from 7.7.0 to 7.9.0 (#​4739)
  • bump github.com/tinylib/msgp from 1.6.4 to 1.6.5 (#​4723)
  • bump github.com/klauspost/compress from 1.20.0 to 1.20.1 (#​4709)
  • bump github.com/gofiber/schema from 1.8.7 to 1.8.8 (#​4706)
  • bump github.com/gofiber/utils/v2 from 2.6.0 to 2.6.1 (#​4707)
  • bump github.com/gofiber/utils/v2 from 2.5.3 to 2.6.0 (#​4704)
  • bump github.com/gofiber/utils/v2 from 2.5.2 to 2.5.3 (#​4700)
  • bump codecov/codecov-action from 7.1.0 to 7.1.1 (#​4699)
  • bump github.com/molecule-man/go-brrr from 1.1.0 to 1.1.1 (#​4698)
  • bump codecov/codecov-action from 7.0.0 to 7.1.0 (#​4691)
  • bump github.com/gofiber/schema from 1.8.6 to 1.8.7 (#​4686)
  • bump github.com/fxamacker/cbor/v2 from 2.9.3 to 2.9.4 (#​4685)
  • bump github.com/gofiber/utils/v2 from 2.5.1 to 2.5.2 (#​4681)
  • bump github.com/shamaton/msgpack/v3 from 3.2.2 to 3.2.3 (#​4680)
  • bump github.com/molecule-man/go-brrr from 1.0.1 to 1.1.0 (#​4676)
  • bump the golang-modules group with 3 updates (#​4672)
  • bump golang.org/x/sys from 0.47.0 to 0.48.0 in the golang-modules group (#​4670)
  • bump github.com/gofiber/schema from 1.8.5 to 1.8.6 (#​4671)
  • bump github.com/gofiber/utils/v2 from 2.5.0 to 2.5.1 (#​4668)
  • bump github.com/valyala/fasthttp from 1.73.0 to 1.74.0 in the fasthttp-modules group (#​4667)
  • bump streetsidesoftware/cspell-action from 9.0.1 to 9.1.0 (#​4665)
  • bump github.com/shamaton/msgpack/v3 from 3.2.1 to 3.2.2 (#​4660)
  • bump github.com/gofiber/utils/v2 from 2.4.3 to 2.5.0 (#​4661)
  • bump golang.org/x/crypto from 0.55.0 to 0.56.0 in the golang-modules group (#​4651)
  • bump github.com/gofiber/utils/v2 from 2.4.2 to 2.4.3 (#​4650)
  • bump github.com/klauspost/compress from 1.19.2 to 1.20.0 (#​4649)
  • bump github.com/gofiber/schema from 1.8.4 to 1.8.5 (#​4647)
  • bump github.com/shamaton/msgpack/v3 from 3.2.0 to 3.2.1 (#​4645)
  • bump github.com/andybalholm/brotli from 1.2.2 to 1.2.3 (#​4639)
  • bump github.com/gofiber/utils/v2 from 2.4.1 to 2.4.2 (#​4634)
  • bump github.com/stretchr/testify from 1.12.0 to 1.12.1 (#​4627)
  • bump streetsidesoftware/cspell-action from 8.4.0 to 9.0.1 (#​4624)
  • bump github.com/fxamacker/cbor/v2 from 2.9.2 to 2.9.3 (#​4623)
  • bump github.com/stretchr/testify from 1.11.1 to 1.12.0 (#​4622)
  • bump the golang-modules group with 3 updates (#​4611)
  • bump github.com/gofiber/schema from 1.8.3 to 1.8.4 (#​4609)

📚 Documentation

  • Clarify that c.IP() walks the proxy chain only with EnableIPValidation (#​4737)
  • Explain what MIMETypes does to an existing format (#​4664)
  • Document the nested and array field notations in Bind (#​4616)
  • Add a minimal CRUD and healthcheck guide (#​4696)
  • Fix British to American English spellings across docs (#​4697)
  • Update README documentation links (#​4711)

📒 Documentation: https://docs.gofiber.io/

💬 Discord: https://gofiber.io/discord

Full Changelog: gofiber/fiber@v3.5.0...v3.6.0

Thank you @​00200200, @​Arvin-Lee, @​AshSgDe29071999, @​BitWeaverDev, @​Dev-next-gen, @​Rachit-Gandhi, @​ReneWerner87, @​Rohilalala, @​RubenPari, @​VedantMadane, @​ZihxS, @​aditya-rohilla, @​drakeo338, @​evgenyponomarev, @​fadiromdhan3, @​fadiroot, @​gaby, @​h2zi, @​haimingZZ, @​ibraah007, @​jabrailkhalil, @​lazerg, @​official-burak and @​truongbo17 for making this release possible.

v3.5.0

Compare Source

🚀 New

  • Harden proxy middleware (#​4405)
    New proxy.SecurityPolicy with secure defaults: private/loopback upstreams, non-http(s) schemes and HTTPS-to-HTTP redirect downgrades are rejected and hop-by-hop headers stripped.
    proxy.WithSecurityPolicy(proxy.SecurityPolicy{
        AllowPrivateIPs: true, // internal upstreams are blocked by default
    })
    https://docs.gofiber.io/middleware/proxy#security
  • Add support for custom binding precedence (#​4544)
    New binding_source struct tag overrides the Bind().All() source order per struct; the resolved order is cached per reflect.Type.
    type SearchReq struct {
        Name string `binding_source:"query,header,cookie,body,uri" query:"name" header:"x-name" json:"name"`
    }
    https://docs.gofiber.io/api/bind#custom-precedence
  • Add SkipUnmatchedRoutes with two-tier 404/405 fast path (#​4486)
    New fiber.Config option that answers unregistered paths with 404/405 before the middleware chain runs (CORS preflight exempt, off by default).
    app := fiber.New(fiber.Config{
        SkipUnmatchedRoutes: true, // default: false
    })
    https://docs.gofiber.io/api/fiber#skipunmatchedroutes

🧹 Updates

  • Speed up route matching with a flat tree index, leading-byte candidate rejection and a specialized /const/:param matcher (#​4558)
  • Quick-reject routes on precomputed slash-count bounds (#​4517)
  • Restore Route inlining lost in the RFC 9110 changes (#​4501)
  • Skip the Accept join allocation in the Format emptiness check (#​4503)
  • Skip the ip.String() allocation in IsProxyTrusted for CIDR-only trust configs (#​4500)
  • Adopt SWAR-accelerated utils helpers in hot-path scanners (#​4536)
  • Adopt gofiber/utils v2.2.0 helpers across hot paths (#​4542)
  • Adopt gofiber/utils v2.4.0 helpers and optimize adaptor/proxy hot paths (#​4557)
  • adaptor: Cut allocations on the net/http bridge (#​4559)
  • cache: Optimize key generation and allocation (#​4608)
  • cors: Fold preflight Vary calls into one header scan (#​4502)
  • csrf: Optimize trusted subdomain matching (#​4543)
  • proxy: Optimize balancer round-robin (#​4549)
  • session: Use make() to preallocate relevantExtractors (#​4562)
  • De-flake the clock-sensitive tests (#​4575)

🐛 Fixes

  • Fix open redirects in composed route URLs and redirect rules (#​4584)
  • Preserve published route buckets during rebuilds (#​4579)
  • URL-encode query values in Redirect.Route (#​4529)
  • Accept the full float64 range in the float route constraint (#​4528)
  • Match HTTP field names the way a recipient must (#​4585)
  • Honor Accept weights followed by whitespace before the comma (#​4550)
  • Compare Accept media types case-insensitively (#​4493)
  • Honor q=0 rejections in content negotiation (#​4508)
  • Honor duplicate Content-Encoding after empty values (#​4514)
  • Improve RFC 9110 compliance across req/res/ctx, helpers and middleware (#​4494)
  • Avoid reading omitted request bodies in Bind.All (#​4565)
  • Combine repeated proxy headers for client IP extraction (#​4568)
  • Close the listener on Listen error paths to avoid FD leaks (#​4532)
  • Fire OnPostShutdown once with the real shutdown error (#​4531)
  • Keep all NewErrorf args when the first isn't a format string (#​4530)
  • adaptor: Preserve Connection tokens (#​4606)
  • cache: Honor only-if-cached for non-shareable entries (#​4589)
  • cache: Stop charging its own latency as response age (#​4578)
  • healthcheck: Answer HEAD probes with the GET status (#​4577)
  • limiter: Floor sub-second expiration in the sliding window (#​4564)
  • proxy: Classify IPv6 transition addresses correctly in upstream validation (#​4553)
  • proxy: Guard runtime helpers against DNS rebinding (#​4518)
  • proxy: Preserve empty-query URL semantics (#​4513)
  • redirect: Rank wildcards behind character classes in rule ordering (#​4607)
  • static: Fix leading-slash normalization for fs.FS root paths (#​4507)
  • Fix client redirect handling, TLS diagnostics and the JSONP callback (#​4586)
  • Fix correctness issues across log injection, cookie jar, routing and Content-Type handling (#​4570)

🛠️ Maintenance

22 changes
  • bump github.com/klauspost/compress from 1.19.1 to 1.19.2 (#​4602)
  • bump DavidAnson/markdownlint-cli2-action from 24.1.0 to 24.2.0 (#​4583)
  • bump release-drafter/release-drafter from 7.6.0 to 7.7.0 (#​4566)
  • bump github.com/gofiber/utils/v2 from 2.4.0 to 2.4.1 (#​4567)
  • bump github.com/valyala/fasthttp from 1.72.0 to 1.73.0 in the fasthttp-modules group (#​4561)
  • bump github.com/mattn/go-isatty from 0.0.23 to 0.0.24 (#​4556)
  • bump actions/checkout from 7.0.0 to 7.0.1 (#​4551)
  • bump github.com/klauspost/compress from 1.19.0 to 1.19.1 (#​4548)
  • bump github.com/gofiber/schema from 1.8.2 to 1.8.3 (#​4547)
  • bump release-drafter/release-drafter from 7.5.1 to 7.6.0 (#​4546)
  • bump DavidAnson/markdownlint-cli2-action from 24.0.0 to 24.1.0 (#​4545)
  • bump actions/setup-go from 6.5.0 to 7.0.0 (#​4541)
  • bump github.com/mattn/go-isatty from 0.0.22 to 0.0.23 (#​4540)
  • bump github.com/shamaton/msgpack/v3 from 3.1.2 to 3.2.0 (#​4538)
  • bump actions/setup-node from 6.4.0 to 7.0.0 (#​4537)
  • bump github.com/gofiber/schema from 1.8.1 to 1.8.2 (#​4535)
  • bump githu

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Asia/Jakarta)

  • Branch creation
    • "before 6am"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled because a matching PR was automerged previously.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot

changeset-bot Bot commented Feb 25, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7b34d00

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 2 times, most recently from ab5bf81 to 9347fce Compare April 25, 2026 21:09
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 2 times, most recently from 77f9d56 to 547a51a Compare May 28, 2026 13:54
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 2 times, most recently from 2c6ed37 to 437e98b Compare July 7, 2026 04:37
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 3 times, most recently from 1865afe to eae7300 Compare August 14, 2026 20:56
@renovate renovate Bot changed the title fix(deps): update module github.com/gofiber/fiber/v2 to v3 fix(deps): update module github.com/gofiber/fiber/v2 to v3 - autoclosed Aug 29, 2026
@renovate renovate Bot closed this Aug 29, 2026
@renovate
renovate Bot deleted the renovate/github.com-gofiber-fiber-v2-3.x branch August 29, 2026 13:52
@renovate renovate Bot changed the title fix(deps): update module github.com/gofiber/fiber/v2 to v3 - autoclosed fix(deps): update module github.com/gofiber/fiber/v2 to v3 Aug 29, 2026
@renovate renovate Bot reopened this Aug 29, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 2 times, most recently from eae7300 to 5459eba Compare August 29, 2026 18:47
@renovate renovate Bot changed the title fix(deps): update module github.com/gofiber/fiber/v2 to v3 fix(deps): update module github.com/gofiber/fiber/v2 to v3 - autoclosed Aug 30, 2026
@renovate renovate Bot closed this Aug 30, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/gofiber/fiber/v2 to v3 - autoclosed fix(deps): update module github.com/gofiber/fiber/v2 to v3 Aug 30, 2026
@renovate renovate Bot reopened this Aug 30, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch from 5459eba to 7ad0564 Compare August 30, 2026 21:32
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 3 times, most recently from 2493615 to 84966fe Compare October 14, 2026 16:32
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch 3 times, most recently from 23fd6e1 to 7de2f8e Compare October 23, 2026 22:52
@renovate
renovate Bot force-pushed the renovate/github.com-gofiber-fiber-v2-3.x branch from 7de2f8e to 7b34d00 Compare November 9, 2026 18:38
@renovate

renovate Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
github.com/molecule-man/go-brrr v1.3.0 -> v1.3.1
github.com/valyala/fasthttp v1.75.0 -> v1.78.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants