php-guzzlehttp-psr7 — security advisory
guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Versions prior to 2.10.2 contain improper Host header validation when parsing raw HTTP request messages and when deriving a server request URI from server variables. An attacker can provide a malformed Host header containing URI authority delimiters, such as `trusted.example@evil.example`. When the Host value is used to construct a URI, the malformed value can be reinterpreted as URI userinfo and host. This can cause the PSR-7 request URI host to differ from the original Host header value. Applications are affected if they parse attacker-controlled raw HTTP requests with `GuzzleHttp\Psr7\Message::parseRequest()` or the legacy 1.x `GuzzleHttp\Psr7\parse_request()` function, or if they build server requests from attacker-controlled server variables, then rely on the resulting URI host for routing, allow-list checks, or forwarding decisions. In affected forwarding or gateway scenarios, this may cause requests or credentials to be sent to an unintended host. The issue is patched in `2.10.2`. `1.x` is end-of-life and will not receive a patch. Some workarounds are available. Validate 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, query, or fragment delimiters.
- Products
- php-guzzlehttp-psr7
- Affected versions
- 1.1.0-1, 1.2.0-1, 1.2.1-1, 1.2.2-1, 1.2.2-1build1, 1.2.2-1ubuntu1, 1.4.2-0.1, 1.4.2-0.1+deb10u2build0.20.04.1, 1.7.0-1, 1.8.3-1, 1.8.3-1ubuntu0.1~esm1, 2.10.3-1, 2.12.0-1, 2.12.1-1, 2.12.3-1, 2.13.0-1, 2.6.0-1, 2.6.1-1, 2.6.2-1, 2.7.0-3, 2.7.1-1, 2.8.0-1, 2.8.0-2, 2.9.0-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-48998
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:07 UTC · Revision 1
Source evidence
guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Versions prior to 2.10.2 contain improper Host header validation when parsing raw HTTP request messages and when deriving a server request URI from server variables. An attacker can provide a malformed Host header containing URI authority delimiters, such as `trusted.example@evil.example`. When the Host value is used to construct a URI, the malformed value can be reinterpreted as URI userinfo and host. This can cause the PSR-7 request URI host to differ from the original Host header value. Applications are affected if they parse attacker-controlled raw HTTP requests with `GuzzleHttp\Psr7\Message::parseRequest()` or the legacy 1.x `GuzzleHttp\Psr7\parse_request()` function, or if they build server requests from attacker-controlled server variables, then rely on the resulting URI host for routing, allow-list checks, or forwarding decisions. In affected forwarding or gateway scenarios, this may cause requests or credentials to be sent to an unintended host. The issue is patched in `2.10.2`. `1.x` is end-of-life and will not receive a patch. Some workarounds are available. Validate 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, query, or fragment delimiters.
osv:UBUNTU-CVE-2026-48998
php-guzzlehttp-psr7
Fixed versions: Not specified
php-guzzlehttp-psr7
Fixed versions: Not specified
php-guzzlehttp-psr7
Fixed versions: Not specified
php-guzzlehttp-psr7
Fixed versions: Not specified
php-guzzlehttp-psr7
Fixed versions: Not specified
php-guzzlehttp-psr7
Fixed versions: Not specified
php-guzzlehttp-psr7
Fixed versions: Not specified
Complete source record
{
"id": "3bb5c67f8e0f7376ff3b99df0f2602c3622911ca704cceef0a7be1780f26dad1",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-48998",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-48998",
"summary": "guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Versions prior to 2.10.2 contain improper Host header validation when parsing raw HTTP request messages and when deriving a server request URI from server variables. An attacker can provide a malformed Host header containing URI authority delimiters, such as `trusted.example@evil.example`. When the Host value is used to construct a URI, the malformed value can be reinterpreted as URI userinfo and host. This can cause the PSR-7 request URI host to differ from the original Host header value. Applications are affected if they parse attacker-controlled raw HTTP requests with `GuzzleHttp\\Psr7\\Message::parseRequest()` or the legacy 1.x `GuzzleHttp\\Psr7\\parse_request()` function, or if they build server requests from attacker-controlled server variables, then rely on the resulting URI host for routing, allow-list checks, or forwarding decisions. In affected forwarding or gateway scenarios, this may cause requests or credentials to be sent to an unintended host. The issue is patched in `2.10.2`. `1.x` is end-of-life and will not receive a patch. Some workarounds are available. Validate 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, query, or fragment delimiters.",
"evidence": "osv:UBUNTU-CVE-2026-48998",
"products": [
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.2-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.2-1ubuntu1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.2-0.1",
"evidence": "/affected/1/versions"
},
{
"value": "1.4.2-0.1+deb10u2build0.20.04.1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.7.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.8.3-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.8.3-1ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.6.1-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.6.2-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.0-3",
"evidence": "/affected/4/versions"
},
{
"value": "2.7.1-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.0-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.9.0-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.10.3-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.12.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.12.1-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.12.3-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.13.0-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "php-guzzlehttp-psr7",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.1-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.8.0-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.8.0-2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-48998",
"aliases": [
"UBUNTU-CVE-2026-48998"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.1.0-1",
"1.2.0-1",
"1.2.1-1",
"1.2.2-1",
"1.2.2-1build1",
"1.2.2-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "1.2.2-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.4.2-0.1",
"1.4.2-0.1+deb10u2build0.20.04.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "1.4.2-0.1+deb10u2build0.20.04.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"1.7.0-1",
"1.8.3-1",
"1.8.3-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "1.8.3-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.6.0-1",
"2.6.1-1",
"2.6.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "2.6.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.7.0-3",
"2.7.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "2.7.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.8.0-2",
"2.9.0-2",
"2.10.3-1",
"2.12.0-1",
"2.12.1-1",
"2.12.3-1",
"2.13.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "2.13.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-guzzlehttp-psr7",
"purl": "pkg:deb/ubuntu/php-guzzlehttp-psr7?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.7.1-1",
"2.8.0-1",
"2.8.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48998.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-guzzlehttp-psr7",
"binary_version": "2.8.0-2"
}
]
}
}
],
"modified": "2026-10-17T13:00:23.868246729Z",
"provider": "osv",
"upstream": [
"CVE-2026-48998"
],
"references": [
"https://ubuntu.com/security/CVE-2026-48998",
"https://www.cve.org/CVERecord?id=CVE-2026-48998",
"https://github.com/guzzle/psr7/security/advisories/GHSA-34xg-wgjx-8xph"
]
},
"related_cves": [
{
"value": "CVE-2026-48998",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360492,
"published_at": "2026-06-11T13:16:00+00:00"
}