Repository navigation
docs: clarify disabling request decompression with globalDecompression: false - #439
Open
javier20dev25 wants to merge 2 commits into
Open
javier20dev25 wants to merge 2 commits into
javier20dev25 wants to merge 2 commits into
Conversation
Eomm
reviewed
Oct 23, 2026
| ### Global hook | ||
|
|
||
| The global request decompression hook is enabled by default. To disable it, pass `{ global: false }`: | ||
| The global request decompression hook is enabled by default (`globalDecompression: true`). |
Member
There was a problem hiding this comment.
TBH this just repeats what is written here:
https://github.com/fastify/fastify-compress#global-hook
I would just keep the TIP
|
|
||
| > [!TIP] | ||
| > **Security Consideration (Request Decompression Attack Surface)**: | ||
| > Ingestion of compressed request payloads exposes applications to untrusted decompression processing (such as CVE-2026-111497 in Node.js Brotli decoder). If an application only serves compressed responses and does not expect compressed request bodies, explicitly configuring `{ globalDecompression: false }` reduces attack surface by ensuring incoming request streams bypass decompression hooks. |
Member
There was a problem hiding this comment.
Suggested change
| > Ingestion of compressed request payloads exposes applications to untrusted decompression processing (such as CVE-2026-111497 in Node.js Brotli decoder). If an application only serves compressed responses and does not expect compressed request bodies, explicitly configuring `{ globalDecompression: false }` reduces attack surface by ensuring incoming request streams bypass decompression hooks. | |
| > Ingestion of compressed request payloads exposes applications to untrusted decompression processing (such as [CVE-2026-111497](https://app.opencve.io/cve/CVE-2026-111497) in Node.js Brotli decoder). If an application only serves compressed responses and does not expect compressed request bodies, explicitly configuring `{ globalDecompression: false }` reduces attack surface by ensuring incoming request streams bypass decompression hooks. |
Puppo
reviewed
Oct 23, 2026
Puppo
left a comment
Member
There was a problem hiding this comment.
Overall LGTM, just address the Eomm comments
This was referenced Nov 23, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR clarifies the documentation under the Usage - Decompress request payloads section:
Addresses the documentation recommendation in #438.
Identified and submitted during security hygiene audit using the Sentinel Security Ecosystem by @javier20dev25.