Unknown · @Grpc/Grpc-Js · CVE-2024-37168
**Name of the Vulnerable Software and Affected Versions**
@grpc/grps-js versions prior to 1.10.9
@grpc/grps-js versions prior to 1.9.15
@grpc/grps-js versions prior to 1.8.22
**Description**
The issue arises from two separate code paths where memory can be allocated per message in excess of the `grpc.max receive message length` channel option. This occurs when an incoming message has a size on the wire greater than the configured limit, causing the entire message to be buffered before it is discarded. Additionally, if an incoming message has a size within the limit on the wire but decompresses to a size greater than the limit, the entire message is decompressed into memory and not discarded on the server.
**Recommendations**
For versions prior to 1.10.9, update to version 1.10.9 or later.
For versions prior to 1.9.15, update to version 1.9.15 or later.
For versions prior to 1.8.22, update to version 1.8.22 or later.