Skip to content

Enforce decoded message size limit for permessage-deflate#821

Merged
arturobernalg merged 1 commit intoapache:masterfrom
arturobernalg:decodeMessageSize
Apr 12, 2026
Merged

Enforce decoded message size limit for permessage-deflate#821
arturobernalg merged 1 commit intoapache:masterfrom
arturobernalg:decodeMessageSize

Conversation

@arturobernalg
Copy link
Copy Markdown
Member

This change fixes a security issue in the websocket module where a compressed permessage-deflate message could inflate beyond the configured message size limit before being rejected.

The fix enforces the decoded size limit during inflation and preserves close code 1009 when the limit is exceeded. Existing behavior for normal messages remains unchanged.

@arturobernalg arturobernalg merged commit 51ce3eb into apache:master Apr 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant