CVE-2024-37168
JavaScript vulnerability analysis and mitigation

Overview

@grpc/grps-js, which implements the core functionality of gRPC purely in JavaScript without a C++ addon, was found to have a vulnerability affecting versions prior to 1.10.9, 1.9.15, and 1.8.22. The vulnerability was discovered and disclosed on June 10, 2024, and involves memory allocation issues with message handling (GitHub Advisory).

Technical details

The vulnerability involves two distinct code paths where memory can be allocated per message exceeding the grpc.max_receive_message_length channel option: 1) When an incoming message has a size on the wire greater than the configured limit, the entire message is buffered before being discarded, and 2) When 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. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.3 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (GitHub Advisory).

Impact

The vulnerability can lead to excessive memory allocation on systems running the affected versions of @grpc/grps-js, potentially causing denial of service conditions through resource exhaustion. This is particularly impactful as it bypasses the intended memory usage limitations set by the grpc.max_receive_message_length parameter (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 1.10.9, 1.9.15, and 1.8.22. Users are advised to upgrade to these or later versions to mitigate the vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58754HIGH7.5
  • JavaScriptJavaScript
  • grafana-azure-monitor
NoYesSep 12, 2025
CVE-2025-59049HIGH7.5
  • JavaScriptJavaScript
  • @mockoon/cli
NoYesSep 10, 2025
CVE-2025-59052HIGH7.1
  • JavaScriptJavaScript
  • @angular/platform-server
NoYesSep 10, 2025
CVE-2025-59139MEDIUM5.3
  • JavaScriptJavaScript
  • hono
NoYesSep 12, 2025
CVE-2025-9910LOW1.3
  • JavaScriptJavaScript
  • jsondiffpatch
NoYesSep 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management