Vulnerability
CVE-2025-58186
Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed does not have a limit. By sending a lot of very small cookies such as "a=;", an attacker can make an HTTP server allocate a large amount of structs, causing large memory consumption.
4035 advisories report this vulnerability, across 12 ecosystems.
Advisories in Go
-
GO-2025-4012
Lack of limit when parsing cookies can cause memory exhaustion in net/http