CVE-2026-31960: Unbounded Http Response Read

Unbounded read of an HTTP response body. An attacker or compromised endpoint could respond with an arbitrarily large payload, causing memory exhaustion and denial of service (DoS). Bound the read operation using `io.LimitReader` or a strict size-limited utility before reading the body into memory.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-31960-unbounded-http-response-read --engine opengrep

Description

Unbounded read of an HTTP response body. An attacker or compromised endpoint could respond with an arbitrarily large payload, causing memory exhaustion and denial of service (DoS). Bound the read operation using `io.LimitReader` or a strict size-limited utility before reading the body into memory.