guzzlehttp/psr7 has Host Confusion via Authority Reinterpretation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.
Summary
guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Versions prior to 2.10.2 contain improper Host header validation when parsing raw HTTP request messages and when deriving a server request URI from server variables. An attacker can provide a malformed Host header containing URI authority delimiters, such as `[email protected]`. When the Host value is used to construct a URI, the malformed value can be reinterpreted as URI userinfo and host. This can cause the PSR-7 request URI host to differ from the original Host header value. Applications are affected if they parse attacker-controlled raw HTTP requests with `GuzzleHttp\Psr7\Message::parseRequest()` or the legacy 1.x `GuzzleHttp\Psr7\parse_request()` function, or if they build server requests from attacker-controlled server variables, then rely on the resulting URI host for routing, allow-list checks, or forwarding decisions. In affected forwarding or gateway scenarios, this may cause requests or credentials to be sent to an unintended host. The issue is patched in `2.10.2`. `1.x` is end-of-life and will not receive a patch. Some workarounds are available. Validate the `Host` header as `uri-host [ ":" port ]` before calling `Message::parseRequest()` or legacy `parse_request()` on untrusted HTTP request data, or before deriving routing and forwarding decisions from a parsed request URI. Reject Host values containing userinfo, path, query, or fragment delimiters.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| guzzle | psr7 | before 2.10.2 | 2.10.2 | Patch available | CNA |
| — | guzzlehttp/psr7 (Packagist) | before 2.10.2 | 2.10.2 | Patch available | GHSA-34xg-wgjx-8xph |
- psr7 Vendorguzzle Affected before 2.10.2 Fixed in 2.10.2 Patch available CNA
- guzzlehttp/psr7 (Packagist) Vendor— Affected before 2.10.2 Fixed in 2.10.2 Patch available GHSA-34xg-wgjx-8xph
Remediation
- Fix · CNA psr7 (guzzle) Fixed in 2.10.2
- Fix · GHSA-34xg-wgjx-8xph guzzlehttp/psr7 (Packagist) Fixed in 2.10.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48998
- 2026-10-03 Alias added: GHSA-34xg-wgjx-8xph
References
More guzzle Psr-7 vulnerabilities
- TI-2022-08589 Improper Input Validation in guzzlehttp/psr7 CVSS 3.1HIGH 7.5
- TI-2023-13898 Laminas Diactoros vulnerable to HTTP Multiline Header Termination CVSS 3.1HIGH 7.5
- TI-2023-13625 Improper header name validation in guzzlehttp/psr7 CVSS 3.1HIGH 7.5
- TI-2026-42696 guzzlehttp/psr7: Host Confusion via Weak URI Host Validation CVSS 3.1MEDIUM 6.5
- TI-2026-36415 guzzlehttp/psr7 has CRLF Injection via URI Host Component CVSS 3.1MEDIUM 5.3
- TI-2026-40255 guzzlehttp/psr7: CRLF Injection in HTTP Start-Line Serialization CVSS 3.1MEDIUM 4.8
Sources
- CVE-2026-48998 · CVE Program
- CVE-2026-48998 · NVD
- FIRST EPSS
- GHSA-34xg-wgjx-8xph · GitHub Advisory Database · CC BY 4.0
- CVE-2026-48998 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences