CVE-2026-145096: Guzzle before 7.16.3 and 8.5.2 URI Fragment Disclosure via StreamHandler
GHSA-gqx6-m769-3x35: URI fragments disclosed in stream handler request targets in guzzlehttp/guzzle
Other sources
Guzzle before 7.16.3 and 8.5.2 contains an information disclosure vulnerability that allows proxies or origin servers to receive URI fragments by StreamHandler passing unstripped URIs to fopen(). When the http.requestfulluri streamcontext option is enabled, attackers operating the proxy or receiving server can capture fragment secrets such as one-time login tokens, access tokens, or state values.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/guzzleto a version that resolves this vulnerability.Fixed in 8.5.2-1 - Upgrade
Upgrade
guzzlehttp/guzzleto a version that resolves this vulnerability.Fixed in 7.16.3 - Upgrade
Upgrade
guzzlehttp/guzzleto a version that resolves this vulnerability.Fixed in 8.5.2
Event History
Frequently Asked Questions
Which deployments are exposed to fragment disclosure?
Deployments using Guzzle's StreamHandler are exposed when the http.request_fulluri stream_context option is enabled and requests contain URI fragments. A proxy or the origin server receiving those requests can observe the fragment.
What must an attacker control or operate to obtain the leaked data?
The attacker must operate the proxy or the origin server that receives the request. Exploitation also depends on http.request_fulluri being enabled and on sensitive values being present in the URI fragment.
Are default configurations affected?
The provided information identifies exposure only when http.request_fulluri is enabled. It does not state whether that option is enabled by default.
What can be done before upgrading?
Disable the http.request_fulluri stream_context option where possible, and avoid placing one-time login tokens, access tokens, state values, or other secrets in URI fragments for affected requests.