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
- 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.
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.
Affected software
| Software | Affected versions |
|---|---|
guzzlehttp/psr7Packagist · osv:Packagist:guzzlehttp/psr7 |
|
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
- CVE-2026-59882guzzlehttp/psr7: Host Confusion via Weak URI Host ValidationMedium 4.2 21 Jul 2026
- CVE-2026-55766guzzlehttp/psr7: CRLF Injection in HTTP Start-Line SerializationMedium 4.8 19 Jun 2026
- CVE-2026-48998guzzlehttp/psr7 has Host Confusion via Authority ReinterpretationMedium 5.3 11 Jun 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-49214
- GitHub Advisory Database https://github.com/advisories/GHSA-hq7v-mx3g-29hw