CVE-2026-48998·PHP vulnerability
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.
- Severity
- medium
- Software
- PHP
- Fixed in
- 2.10.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 13% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 2.10.2
Fixed in: 2.10.2
How to fix this CVE
Update PHP and the guzzlehttp/psr7 library to version 2.10.2 or later to remediate Host header validation bypass vulnerability. If you use PHP applications that parse raw HTTP requests or derive URIs from server variables, prioritize this update to prevent requests from being routed to unintended hosts. Until patching is complete, implement strict Host header validation that rejects values containing userinfo delimiters (@), path (/) or query (?) characters.
sudo dnf upgrade php php-guzzlehttp-psr7Defensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|GET|HEAD|PUT|DELETE|PATCH HTTP/1\.1.*Host:.*[@].*|Host:.*:[^0-9]+.*|Host:.*%40.*WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a WAF rule to block or log Host headers containing '@' characters, colons followed by non-numeric values, or URL-encoded userinfo delimiters (%40). Example: ModSecurity rule to reject requests where Host header matches [a-zA-Z0-9.-]*@[a-zA-Z0-9.-]* pattern.How to check if you are affected
- Check PHP version: php -v
- Check guzzlehttp/psr7 version: composer show guzzlehttp/psr7 (or inspect vendor/guzzlehttp/psr7/composer.json if Composer is used)
- Search application logs for suspicious Host headers containing '@' or userinfo patterns: grep -r '@' /var/log/apache2/access.log | grep -E 'Host:|Host:.*@'
- Verify the patch by confirming guzzlehttp/psr7 is at version 2.10.2 or later: composer show guzzlehttp/psr7 | grep -i version
Indicators of compromise
- Host header containing @ symbol in request (e.g., trusted.example@evil.example)
- Host header with userinfo prefix followed by colon and authority (e.g., user:pass@host.com)
- Inconsistency between Host header value and parsed URI host in application logs
FAQ
What is CVE-2026-48998?
This vulnerability allows attackers to inject malformed Host headers containing userinfo delimiters (like @) into HTTP requests, causing the PSR-7 library to parse the URI differently than the original header. This mismatch can lead to requests being forwarded to unintended hosts or bypassing security controls.
Is CVE-2026-48998 being actively exploited?
No, this CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit is currently available, though the vulnerability is exploitable in certain application configurations.
What versions of PHP are affected by CVE-2026-48998?
Versions of guzzlehttp/psr7 prior to 2.10.2 are vulnerable; version 1.x is end-of-life and will not receive a patch. The vulnerability affects applications running any version of PHP that uses the vulnerable psr7 library.
How do I check if my server is vulnerable to CVE-2026-48998?
Run 'composer show guzzlehttp/psr7' to check the installed version. If it is below 2.10.2, your application is vulnerable. Additionally, check if your application parses raw HTTP requests using Message::parseRequest() or legacy parse_request() functions.
Does Defensia detect CVE-2026-48998?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP and guzzlehttp/psr7 are installed on a monitored server, CVE-2026-48998 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-48998. Free for 1 server.
Get started free