All vulnerabilities

Packagist

CVE-2026-48998

guzzlehttp/psr7 has Host Confusion via Authority Reinterpretation

Severity
Medium 5.3
Published
11 Jun 2026
Last changed
10 Sept 2026
Added to UpHeron
23 Oct 2026
Fixed in
2.10.2
Exploit chance
0.2% in the next 30 daysHigher than 9% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)Server-side request forgery (CWE-918)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Also known as
GHSA-34xg-wgjx-8xph
Sources
OSV.dev and GitHub

Description

guzzlehttp/psr7 improperly interpreted malformed Host header values when constructing request URIs from inbound request data. This issue concerns inbound request parsing and server request construction. It does not require serializing a PSR-7 request, and it is not part of the normal outbound request-sending path used by guzzlehttp/guzzle.

A vulnerable flow is:

  • An attacker controls a raw HTTP request or server variable containing a Host value.
  • The Host value contains URI authority delimiters, such as [email protected].
  • guzzlehttp/psr7 uses that value to construct a URI.
  • The URI parser treats the portion before @ as userinfo and the portion after @ as the URI host.
  • The resulting PSR-7 request URI host differs from the original Host header value.

For example, Host: [email protected] can result in a PSR-7 URI whose host is evil.example, while the original Host header value remains [email protected].

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

If you cannot upgrade immediately, validate Host values before passing untrusted request data to Message::parseRequest(), legacy 1.x parse_request(), ServerRequest::fromGlobals(), or ServerRequest::getUriFromGlobals().

Accept only uri-host [ ":" port ]. Reject values containing whitespace, control characters, userinfo (@), path (/ or ), query (?), fragment (#), malformed IP literals or bracket syntax, or invalid port syntax.

Do not validate Host by prefixing it with http:// and passing it to parse_url(), because that can reinterpret malformed values as URI userinfo and host.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
guzzlehttp/psr7Packagist · osv:Packagist:guzzlehttp/psr7
  • Every version before 2.10.2

About guzzlehttp/psr7

Monthly downloads (Packagist)
37,409,142Packagist, 17 Nov 2026
Total downloads (Packagist)
1,196,134,859Packagist, 17 Nov 2026

Vulnerabilities in guzzlehttp/psr7

In our list
4
Published in the last 12 months
4
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for guzzlehttp/psr7

References