Memory exhaustion in query parameter parsing in net/url
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.
GO-2026-4341
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GO-2026-4341
stdlib
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 1.24.12
Source reference:
/affected/0/ranges1.25.6Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.24.12"
},
{
"introduced": "1.25.0"
},
{
"fixed": "1.25.6"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-4341.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "net/url",
"symbols": [
"ParseQuery",
"URL.Query",
"parseQuery"
]
}
]
}
}
]- Related CVEs
- CVE-2025-61726
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #75183 · Revision 1
- Added to Heist Feed
- Publisher date