MediumGHSA-q7rv-6hp3-vh96BIT-drupal-2022-24775CVE-2022-24775DRUPAL-CORE-2022-006
Improper Input Validation in guzzlehttp/psr7
Published 25 Mar 2022 · Updated 4 Feb 2026
Affected packages
guzzlehttp/psr7Composer
- Affected
- <1.8.4
- Fixed in
- 1.8.4
Update to the fixed version for your release line, for example:
composer require guzzlehttp/psr7:^1.8.4guzzlehttp/psr7Composer
- Affected
- >=2.0.0 <2.1.1
- Fixed in
- 2.1.1
Update to the fixed version for your release line, for example:
composer require guzzlehttp/psr7:^2.1.1Details
Impact
Improper header parsing. An attacker could sneak in a carriage return character (\r) and pass untrusted values in both the header names and values.
Patches
The issue is patched in 1.8.4 and 2.1.1.
Workarounds
There are no known workarounds.
References
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
Is GHSA-q7rv-6hp3-vh96 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
- Linkgithub.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-24775
- Linkgithub.com/guzzle/psr7/pull/485/commits/e55afaa3fc138c89adf3b55a8ba20dc60d17f1f1
- Linkgithub.com/guzzle/psr7/pull/486/commits/9a96d9db668b485361ed9de7b5bf1e54895df1dc
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/psr7/CVE-2022-24775.yaml
- Packagegithub.com/guzzle/psr7
- Linkwww.drupal.org/sa-core-2022-006
- Linkwww.rfc-editor.org/rfc/rfc7230#section-3.2.4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.