Server-side Request Forgery (SSRF) Affecting guzzlehttp/psr7 package, versions <2.10.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-GUZZLEHTTPPSR7-17318033
  • published12 Jun 2026
  • disclosed11 Jun 2026
  • creditVolker Dusch

Introduced: 11 Jun 2026

NewCVE-2026-48998  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade guzzlehttp/psr7 to version 2.10.2 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via improper validation of the Host header when parsing raw HTTP request messages or deriving a server request URI from server variables. An attacker can manipulate the Host header to include URI authority delimiters, causing the constructed URI host to differ from the original value, potentially resulting in requests or credentials being sent to an unintended host by exploiting affected forwarding or gateway scenarios.

Workaround

This vulnerability can be mitigated by validating the Host header as uri-host [ ":" port ] before calling Message::parseRequest() or legacy parse_request() on untrusted HTTP request data, or before deriving routing and forwarding decisions from a parsed request URI. Reject Host values containing userinfo (@), path (/ or \), query (?), fragment (#) delimiters.

CVSS Base Scores

version 4.0
version 3.1