MediumGHSA-wxmh-65f7-jcvwCVE-2023-29197

Improper header name validation in guzzlehttp/psr7

Published 19 Apr 2023 · Updated 4 Feb 2026

Affected packages

Affected
<1.9.1
Fixed in
1.9.1
Update to the fixed version for your release line, for example:composer require guzzlehttp/psr7:^1.9.1
Affected
>=2.0.0 <2.4.5
Fixed in
2.4.5
Update to the fixed version for your release line, for example:composer require guzzlehttp/psr7:^2.4.5

Details

Impact

Improper header parsing. An attacker could sneak in a newline (\n) into both the header names and values. While the specification states that \r\n\r\n is used to terminate the header list, many servers in the wild will also accept \n\n.

Patches

The issue is patched in 1.9.1 and 2.4.5.

Workarounds

There are no known workarounds.

References

  • https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4

Is GHSA-wxmh-65f7-jcvw in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected guzzlehttp/psr7, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.