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

Published Jun 19, 2026
·
Updated

Impact

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. This is not the normal request-sending path used by guzzlehttp/guzzle; applications using guzzlehttp/psr7 only through Guzzle's standard HTTP client APIs are not expected to be affected.

Applications are most likely to be affected when they manually serialize PSR-7 messages, forward raw HTTP messages, or use custom transports, proxying, crawling, webhook delivery, testing, or similar code. Depending on how downstream HTTP/1.1 components parse the serialized message, this may lead to header injection, response splitting, request smuggling, or cache poisoning.

Patches

The issue is patched in 2.12.1 and later. Starting in that release, guzzlehttp/psr7 rejects CR/LF characters in HTTP method, protocol version, and response reason phrase values before storing them in first-party message objects.

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. If an application runs with attacker-controlled synthetic $SERVER values, validate REQUESTMETHOD and SERVERPROTOCOL before calling ServerRequest::fromGlobals().

Other sources

guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Prior to 2.12.1, 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. This vulnerability is fixed in 2.12.1.

MITRE

Affected Software

2 affected componentsFixes available
composer/guzzlehttp/psr7<2.12.1
2.12.1
Guzzlephp Psr-7<2.12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/guzzlehttp/psr7 to a version that resolves this vulnerability.

    Fixed in 2.12.1
  2. Upgrade

    Upgrade guzzlehttp/psr7 to a version that resolves this vulnerability.

    Fixed in 2.12.1
  3. Configuration

    If you parse untrusted raw HTTP messages, validate the raw start line (e.g., ensure attacker-controlled start-line fields cannot contain CR/LF) before calling Message::parseRequest() or Message::parseResponse(), and avoid reparsing untrusted raw messages.

    PHP application using guzzlehttp/psr7 Validate raw start-line before Message::parseRequest()/Message::parseResponse() = true

Event History

Jun 19, 2026
Advisory Published
via GitHub·02:35 PM
Data Sourced
via GitHub·02:35 PM
DescriptionSeverityWeaknessAffected Software
Jun 23, 2026
CVE Published
via MITRE·03:07 PM
Data Sourced
via MITRE·03:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-55766?

The severity of CVE-2026-55766 is medium with a CVSS score of 4.8.

2

What impact does CVE-2026-55766 have?

CVE-2026-55766 allows an attacker to inject CR/LF characters into certain HTTP start-line fields, potentially leading to CRLF Injection.

3

How do I fix CVE-2026-55766?

To fix CVE-2026-55766, ensure that user-controlled data is properly sanitized and reject CR/LF characters in relevant HTTP fields.

4

Which software is affected by CVE-2026-55766?

CVE-2026-55766 affects the 'composer/guzzlehttp/psr7' software package.

5

When was CVE-2026-55766 published?

CVE-2026-55766 was published on June 19, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-55766 - guzzlehttp/psr7: CRLF Injection in HTTP Start-Line Serialization - SecAlerts