# CVE-2026-48998: guzzlehttp/psr7 has Host Confusion via Authority Reinterpretation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-20, CWE-918
- **Aliases:** GHSA-34xg-wgjx-8xph
- **Published:** 2026-06-11T12:34:32.397Z
- **Modified:** 2026-10-26T11:10:00.157Z

## Who should check

- Projects that depend on Packagist package guzzlehttp/psr7 (\< 2.10.2)
- Anyone running guzzle psr7 \< 2.10.2

## Description

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.

## Affected and fixed versions

- Packagist `guzzlehttp/psr7`: affected \< 2.10.2; fixed 2.10.2 (osv)
- guzzle psr7: \< 2.10.2 (cvelist)

## Mitigation

- Upgrade guzzlehttp/psr7 to 2.10.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-48998. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-48998.md
Affected: guzzlehttp/psr7 < 2.10.2
Fixed in: 2.10.2

Steps:
1. Search this machine and project for guzzlehttp/psr7 (Packagist), guzzle psr7: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-48998 being exploited?

There is no confirmed exploitation: CVE-2026-48998 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-48998?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-48998?

guzzlehttp/psr7 \< 2.10.2.

### Is there a fix for CVE-2026-48998?

Yes. Fixed in 2.10.2. Upgrade guzzlehttp/psr7 to 2.10.2 or later.

### How do I check if I'm affected by CVE-2026-48998?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/guzzle/psr7/security/advisories/GHSA-34xg-wgjx-8xph>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-48998>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/psr7/CVE-2026-48998.yaml>
- other: <https://github.com/guzzle/psr7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-48998>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-34xg-wgjx-8xph> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-48998> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-48998>
