All vulnerabilities

Packagist

CVE-2026-55766

guzzlehttp/psr7: CRLF Injection in HTTP Start-Line Serialization

Severity
Medium 4.8
Published
19 Jun 2026
Last changed
10 Sept 2026
Added to UpHeron
23 Oct 2026
Fixed in
2.12.1
Exploit chance
0.2% in the next 30 daysHigher than 13% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
HTTP response splitting (CWE-113)CRLF injection (CWE-93)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Also known as
GHSA-vm85-hxw5-5432
Sources
OSV.dev and GitHub

Description

guzzlehttp/psr7 did not reject CR/LF characters in certain first-party HTTP start-line fields: the request method, protocol version, and response reason phrase. If an application placed attacker-controlled data into one of those fields and later serialized the PSR-7 message as raw HTTP/1.x, for example with Message::toString() or an equivalent serializer, the serialized message could contain attacker-controlled header lines. The issue can also be reached through Message::parseRequest() or Message::parseResponse() when malformed raw messages are parsed into first-party PSR-7 objects and then serialized again.

Creating or modifying a Request, Response, or other PSR-7 object alone is not sufficient. The issue requires the malformed message to be serialized and written to the network, forwarded, replayed, or otherwise processed by software that does not independently reject the malformed start line.

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

Workarounds

If you cannot upgrade immediately, reject CR/LF in untrusted method, protocol version, and reason phrase values before constructing or modifying PSR-7 messages.

Applications that parse, forward, replay, or serialize raw HTTP messages cannot work around the parser entry points by validating only after parsing. They should validate the raw start line before calling Message::parseRequest() or Message::parseResponse(), avoid reparsing untrusted raw messages, or upgrade.

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.12.1

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