All vulnerabilities

Packagist

CVE-2026-49214

guzzlehttp/psr7 has CRLF Injection via URI Host Component

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 8% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
HTTP response splitting (CWE-113)Improper input validation (CWE-20)CRLF injection (CWE-93)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Also known as
GHSA-hq7v-mx3g-29hw
Sources
OSV.dev and GitHub

Description

guzzlehttp/psr7 did not reject ASCII control characters, whitespace, or DEL in first-party URI host components. The issue requires a PSR-7 request to be serialized into a raw HTTP/1.x message, for example with GuzzleHttp\Psr7\Message::toString() or an equivalent custom serializer. Creating a Uri, Request, or other PSR-7 object alone is not sufficient. The malformed host must be copied into the serialized Host header without further validation.

A vulnerable flow is:

  • An application accepts a user-controlled URL.
  • The URL is used to construct a PSR-7 Uri or Request.
  • The host component contains CRLF or another header-unsafe character.
  • The request is serialized into a raw HTTP/1.x message without an explicit Host header.
  • The host is copied into the serialized Host header.
  • The serialized request is written to the network or otherwise processed by software that does not independently reject the malformed host.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

If you cannot upgrade immediately, validate and reject all untrusted URI strings before constructing PSR-7 Uri or Request instances. Reject input containing ASCII control characters, whitespace, or DEL, including CRLF, tab, space, NUL, or DEL characters:

Applications that manually serialize or forward requests should also ensure the final HTTP client, transport, or serializer rejects invalid URI and header data before writing requests to the network.

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