[PR #6899] [CLOSED] chore(deps): bump github.com/valyala/fasthttp from 1.75.0 to 1.76.0 #6506

Closed
opened 2026-11-02 04:09:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6899
Author: @dependabot[bot]
Created: 10/22/2026
Status: ❌ Closed

Base: main ← Head: dependabot/go_modules/github.com/valyala/fasthttp-1.76.0


📝 Commits (1)

  • 0720f95 chore(deps): bump github.com/valyala/fasthttp from 1.75.0 to 1.76.0

📊 Changes

2 files changed (+9 additions, -9 deletions)

View changed files

📝 go.mod (+3 -3)
📝 go.sum (+6 -6)

📄 Description

Bumps github.com/valyala/fasthttp from 1.75.0 to 1.76.0.

Release notes

Sourced from github.com/valyala/fasthttp's releases.

v1.76.0

v1.76.0 strengthens HTTP message framing, static-file isolation, and server connection handling. It also improves HTTP compatibility, avoids quadratic work when parsing large trailer sets, and adds configurable TCP keep-alives to TCPDialer.

Security fixes and hardening

  • Multipart parsing consumes the entire declared body. Bytes after the closing multipart boundary are drained before the connection is reused, preventing a multipart epilogue from being interpreted as another request. #2336
  • Outgoing messages preserve framing. Raw Content-Length headers are synchronized with the outgoing body, duplicate or conflicting framing headers are rejected, and fixed-length request and response streams cannot write beyond their declared size. FS and SendFile also stop at the advertised Content-Length when a file grows during serving. #2470, #2462
  • Requests with both Content-Length and Transfer-Encoding close the connection. The connection is no longer reused after a request containing both framing headers. #2476
  • Virtual-host file serving preserves directory isolation. NewVHostPathRewriter avoids decoding the host and path twice and handles invalid hosts safely, preventing crafted requests from escaping the virtual-host directory and accessing files directly under FS.Root. This affects FS handlers using NewVHostPathRewriter. #2487
  • Rejected TLS connections no longer block the accept loop. Connections rejected by MaxConnsPerIP or Concurrency are closed without attempting an HTTP error response, which could otherwise trigger a TLS handshake and stall while waiting for a ClientHello. IPv6 clients are now also counted against MaxConnsPerIP. #2486, #2468

Performance improvements

  • Trailer parsing avoids quadratic work. Large sets of trailer names use indexed membership checks instead of repeatedly scanning all previously recorded names. This reduces CPU amplification from crafted Trailer headers and chunked trailer sections while preserving trailer order. #2465

HTTP compatibility and features

  • Static files handle range and conditional requests more accurately. Unsupported range units and multiple ranges are ignored instead of returning 416; invalid single byte ranges still return 416. Range is also ignored when If-Range does not match, and both Range and If-Modified-Since are ignored for methods other than GET and HEAD. #2467, #2473, #2474, #2475
  • Pipeline clients handle HEAD responses without reading a body. PipelineClient skips the response body for HEAD requests. #2469
  • HTTP parsing accepts valid legacy formats and matches tokens correctly. ParseHTTPDate accepts obsolete HTTP-date formats, cookies with an invalid Expires attribute remain parseable, Expect: 100-continue is matched case-insensitively, and Accept-Encoding matches complete tokens. Asterisk-form request targets are rejected for methods other than OPTIONS. #2466, #2481, #2482, #2479, #2463
  • TCP keep-alives are configurable. The new TCPDialer.KeepAlive field sets the keep-alive period for connections created by the dialer; a negative value disables keep-alives. #2484

What's Changed

Security and hardening

Performance

Features

Fixes

... (truncated)

Commits
  • 634ef44 fix(fs): preserve vhost isolation during path rewriting (#2487)
  • 7aea379 feat: add KeepAlive option to TCPDialer (#2484)
  • 89a91a8 fix: match complete Accept-Encoding tokens (#2479)
  • 414aa59 Fix TLS connection rejection blocking the accept loop (#2486)
  • 0880727 consume the rest of the declared body in readMultipartForm (#2336)
  • 14a2406 fix flaky TestStreamBodyRequestContentLength
  • 24922f6 chore(deps): bump github.com/klauspost/compress from 1.20.1 to 1.20.3 (#2485)
  • 260b438 fix: match the Expect: 100-continue value case-insensitively (#2482)
  • 95bdd1c chore(deps): bump github.com/molecule-man/go-brrr from 1.2.0 to 1.3.0 (#2483)
  • 4e0f08c fix(cookie): ignore an invalid Expires attribute instead of failing to parse ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6899 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/22/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/go_modules/github.com/valyala/fasthttp-1.76.0` --- ### 📝 Commits (1) - [`0720f95`](https://github.com/MHSanaei/3x-ui/commit/0720f9598d9f2b88212f6c4cb2bfa25db40db353) chore(deps): bump github.com/valyala/fasthttp from 1.75.0 to 1.76.0 ### 📊 Changes **2 files changed** (+9 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+3 -3) 📝 `go.sum` (+6 -6) </details> ### 📄 Description Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.75.0 to 1.76.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/valyala/fasthttp/releases">github.com/valyala/fasthttp's releases</a>.</em></p> <blockquote> <h2>v1.76.0</h2> <p><code>v1.76.0</code> strengthens HTTP message framing, static-file isolation, and server connection handling. It also improves HTTP compatibility, avoids quadratic work when parsing large trailer sets, and adds configurable TCP keep-alives to <code>TCPDialer</code>.</p> <h2>Security fixes and hardening</h2> <ul> <li><strong>Multipart parsing consumes the entire declared body.</strong> Bytes after the closing multipart boundary are drained before the connection is reused, preventing a multipart epilogue from being interpreted as another request. <a href="https://redirect.github.com/valyala/fasthttp/pull/2336">#2336</a></li> <li><strong>Outgoing messages preserve framing.</strong> Raw <code>Content-Length</code> headers are synchronized with the outgoing body, duplicate or conflicting framing headers are rejected, and fixed-length request and response streams cannot write beyond their declared size. <code>FS</code> and <code>SendFile</code> also stop at the advertised <code>Content-Length</code> when a file grows during serving. <a href="https://redirect.github.com/valyala/fasthttp/pull/2470">#2470</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2462">#2462</a></li> <li><strong>Requests with both <code>Content-Length</code> and <code>Transfer-Encoding</code> close the connection.</strong> The connection is no longer reused after a request containing both framing headers. <a href="https://redirect.github.com/valyala/fasthttp/pull/2476">#2476</a></li> <li><strong>Virtual-host file serving preserves directory isolation.</strong> <code>NewVHostPathRewriter</code> avoids decoding the host and path twice and handles invalid hosts safely, preventing crafted requests from escaping the virtual-host directory and accessing files directly under <code>FS.Root</code>. This affects <code>FS</code> handlers using <code>NewVHostPathRewriter</code>. <a href="https://redirect.github.com/valyala/fasthttp/pull/2487">#2487</a></li> <li><strong>Rejected TLS connections no longer block the accept loop.</strong> Connections rejected by <code>MaxConnsPerIP</code> or <code>Concurrency</code> are closed without attempting an HTTP error response, which could otherwise trigger a TLS handshake and stall while waiting for a <code>ClientHello</code>. IPv6 clients are now also counted against <code>MaxConnsPerIP</code>. <a href="https://redirect.github.com/valyala/fasthttp/pull/2486">#2486</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2468">#2468</a></li> </ul> <h2>Performance improvements</h2> <ul> <li><strong>Trailer parsing avoids quadratic work.</strong> Large sets of trailer names use indexed membership checks instead of repeatedly scanning all previously recorded names. This reduces CPU amplification from crafted <code>Trailer</code> headers and chunked trailer sections while preserving trailer order. <a href="https://redirect.github.com/valyala/fasthttp/pull/2465">#2465</a></li> </ul> <h2>HTTP compatibility and features</h2> <ul> <li><strong>Static files handle range and conditional requests more accurately.</strong> Unsupported range units and multiple ranges are ignored instead of returning <code>416</code>; invalid single byte ranges still return <code>416</code>. <code>Range</code> is also ignored when <code>If-Range</code> does not match, and both <code>Range</code> and <code>If-Modified-Since</code> are ignored for methods other than GET and HEAD. <a href="https://redirect.github.com/valyala/fasthttp/pull/2467">#2467</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2473">#2473</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2474">#2474</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2475">#2475</a></li> <li><strong>Pipeline clients handle HEAD responses without reading a body.</strong> <code>PipelineClient</code> skips the response body for HEAD requests. <a href="https://redirect.github.com/valyala/fasthttp/pull/2469">#2469</a></li> <li><strong>HTTP parsing accepts valid legacy formats and matches tokens correctly.</strong> <code>ParseHTTPDate</code> accepts obsolete HTTP-date formats, cookies with an invalid <code>Expires</code> attribute remain parseable, <code>Expect: 100-continue</code> is matched case-insensitively, and <code>Accept-Encoding</code> matches complete tokens. Asterisk-form request targets are rejected for methods other than OPTIONS. <a href="https://redirect.github.com/valyala/fasthttp/pull/2466">#2466</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2481">#2481</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2482">#2482</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2479">#2479</a>, <a href="https://redirect.github.com/valyala/fasthttp/pull/2463">#2463</a></li> <li><strong>TCP keep-alives are configurable.</strong> The new <code>TCPDialer.KeepAlive</code> field sets the keep-alive period for connections created by the dialer; a negative value disables keep-alives. <a href="https://redirect.github.com/valyala/fasthttp/pull/2484">#2484</a></li> </ul> <h2>What's Changed</h2> <h3>Security and hardening</h3> <ul> <li>consume the rest of the declared body in readMultipartForm by <a href="https://github.com/alhudz"><code>@​alhudz</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2336">valyala/fasthttp#2336</a></li> <li>fix: validate outgoing request framing by <a href="https://github.com/erikdubbelboer"><code>@​erikdubbelboer</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2470">valyala/fasthttp#2470</a></li> <li>stop FS and SendFile at Content-Length when the file has grown by <a href="https://github.com/alhudz"><code>@​alhudz</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2462">valyala/fasthttp#2462</a></li> <li>fix: close the connection after a request with both Content-Length and Transfer-Encoding by <a href="https://github.com/LuisFigueroaG"><code>@​LuisFigueroaG</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2476">valyala/fasthttp#2476</a></li> <li>fix(fs): preserve vhost isolation during path rewriting by <a href="https://github.com/koyokr"><code>@​koyokr</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2487">valyala/fasthttp#2487</a></li> <li>Fix TLS connection rejection blocking the accept loop by <a href="https://github.com/erikdubbelboer"><code>@​erikdubbelboer</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2486">valyala/fasthttp#2486</a></li> <li>count IPv6 clients against MaxConnsPerIP by <a href="https://github.com/alhudz"><code>@​alhudz</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2468">valyala/fasthttp#2468</a></li> </ul> <h3>Performance</h3> <ul> <li>make addTrailerKey linear in the size of the trailer set by <a href="https://github.com/alhudz"><code>@​alhudz</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2465">valyala/fasthttp#2465</a></li> </ul> <h3>Features</h3> <ul> <li>feat: add KeepAlive option to TCPDialer by <a href="https://github.com/littfed"><code>@​littfed</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2484">valyala/fasthttp#2484</a></li> </ul> <h3>Fixes</h3> <ul> <li>fix(header): reject asterisk-form request-target for non-OPTIONS methods by <a href="https://github.com/aadieng100"><code>@​aadieng100</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2463">valyala/fasthttp#2463</a></li> <li>fix: accept the obsolete HTTP-date formats in ParseHTTPDate by <a href="https://github.com/LuisFigueroaG"><code>@​LuisFigueroaG</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2466">valyala/fasthttp#2466</a></li> <li>fix(fs): ignore Range headers FS can't serve instead of replying 416 by <a href="https://github.com/LuisFigueroaG"><code>@​LuisFigueroaG</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2467">valyala/fasthttp#2467</a></li> <li>skip the response body for HEAD requests in PipelineClient by <a href="https://github.com/alhudz"><code>@​alhudz</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2469">valyala/fasthttp#2469</a></li> <li>fix(fs): ignore If-Modified-Since for methods other than GET and HEAD by <a href="https://github.com/LuisFigueroaG"><code>@​LuisFigueroaG</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2474">valyala/fasthttp#2474</a></li> <li>fix(fs): ignore Range when the If-Range validator doesn't match by <a href="https://github.com/LuisFigueroaG"><code>@​LuisFigueroaG</code></a> in <a href="https://redirect.github.com/valyala/fasthttp/pull/2473">valyala/fasthttp#2473</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/valyala/fasthttp/commit/634ef44b2cf373160197fa2794f2568b94462909"><code>634ef44</code></a> fix(fs): preserve vhost isolation during path rewriting (<a href="https://redirect.github.com/valyala/fasthttp/issues/2487">#2487</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/7aea37996b5f8edc2fe68f7107b4e0369c983d7c"><code>7aea379</code></a> feat: add KeepAlive option to TCPDialer (<a href="https://redirect.github.com/valyala/fasthttp/issues/2484">#2484</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/89a91a8866e8a81eefcc7de4f45221d660f9d4a4"><code>89a91a8</code></a> fix: match complete Accept-Encoding tokens (<a href="https://redirect.github.com/valyala/fasthttp/issues/2479">#2479</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/414aa591c449fee8f9bc66c1c1df5ab20a8a1ef7"><code>414aa59</code></a> Fix TLS connection rejection blocking the accept loop (<a href="https://redirect.github.com/valyala/fasthttp/issues/2486">#2486</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/08807279a0675a85a68fceebee59d11aa16243fb"><code>0880727</code></a> consume the rest of the declared body in readMultipartForm (<a href="https://redirect.github.com/valyala/fasthttp/issues/2336">#2336</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/14a24068bc9046f1cc45cb664d8bfdd8fbc2889a"><code>14a2406</code></a> fix flaky TestStreamBodyRequestContentLength</li> <li><a href="https://github.com/valyala/fasthttp/commit/24922f6ee470a4a64d91ab705550be77987c465f"><code>24922f6</code></a> chore(deps): bump github.com/klauspost/compress from 1.20.1 to 1.20.3 (<a href="https://redirect.github.com/valyala/fasthttp/issues/2485">#2485</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/260b43825f850596075d3d6f61532e812d67cff0"><code>260b438</code></a> fix: match the Expect: 100-continue value case-insensitively (<a href="https://redirect.github.com/valyala/fasthttp/issues/2482">#2482</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/95bdd1c53f8b5e0b1dbed2956e7419f10019e674"><code>95bdd1c</code></a> chore(deps): bump github.com/molecule-man/go-brrr from 1.2.0 to 1.3.0 (<a href="https://redirect.github.com/valyala/fasthttp/issues/2483">#2483</a>)</li> <li><a href="https://github.com/valyala/fasthttp/commit/4e0f08c6b18c983469721ab0320ff7fe2e4ca475"><code>4e0f08c</code></a> fix(cookie): ignore an invalid Expires attribute instead of failing to parse ...</li> <li>Additional commits viewable in <a href="https://github.com/valyala/fasthttp/compare/v1.75.0...v1.76.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/valyala/fasthttp&package-manager=go_modules&previous-version=1.75.0&new-version=1.76.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:09:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6506
No description provided.