VDB
Sign up
HIGH7.5

GO-2026-4341

Memory exhaustion in query parameter parsing in net/url

Quick fix

GO-2026-4341 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.24.12

Details

The net/url package does not set a limit on the number of query parameters in a query.

While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a large form containing many unique query parameters can cause excessive memory consumption.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.24.12
Fixgo get stdlib@v1.24.12

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/stdlib"]}'