Skip to content
Laskyr

guzzlehttp/psr7 security advisory

CVE-2026-55766: CRLF injection in HTTP start-line serialization in guzzlehttp/psr7

CVE-2026-55766 is a medium-severity header injection vulnerability in the PHP package guzzlehttp/psr7 (CVSS 4.8), published 23 June 2026. It is fixed in 2.12.1; earlier versions are affected. It can be exploited without an account.

medium 4.8 published 2026-06-23 · updated 2026-10-25

Fixed in guzzlehttp/psr7 2.12.1

This header injection issue affects guzzlehttp/psr7 versions < 2.12.1. Upgrade to the fixed version for your release line (2.12.1). The newest release, 3.2.0, is not affected.

Affected versions
< 2.12.1
Fixed in
2.12.1
Newest release
3.2.0
Severity
Medium · CVSS 4.8
Type
Header injection
CWE-93, CWE-113
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-04

Is your guzzlehttp/psr7 version affected?

Run composer show guzzlehttp/psr7 in your project, then enter the version. We check it against this and every other known guzzlehttp/psr7 advisory.

Who can exploit CVE-2026-55766

CVSS vector (scored by GitHub): CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Your app is only exposed if it uses the affected part of guzzlehttp/psr7. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

How to fix CVE-2026-55766 in guzzlehttp/psr7

  1. Find the installed version: composer show guzzlehttp/psr7. If you never required it yourself, composer why guzzlehttp/psr7 shows which package pulls it in.
  2. Update it: composer update guzzlehttp/psr7 --with-all-dependencies. You need 2.12.1 or newer.
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "guzzlehttp/psr7": "^2.12.1" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-55766.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for header injection issues while the upgrade waits. None of it replaces the fix.

The CVE-2026-55766 advisory

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.

Description from the CVE record, published by GitHub (the CVE Numbering Authority), via the NVD entry for CVE-2026-55766. Advisory title: “CRLF injection in HTTP start-line serialization”.

References

Other guzzlehttp/psr7 advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit