Read the docs

Host check bypass in Guzzle via malformed bracketed URI host

Priority LOW 25CWE-436Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Guzzle (guzzlehttp/guzzle) from 0 before 7.16.3 accepts bracketed request URI hosts that are not IP literals, such as [127.0.0.1]:6379], so the host and port checks see different values than the ones PHP's stream transport connects to. An attacker who influences a fetched URI or redirect target can bypass application host and port checks, which lets StreamHandler reach excluded loopback hosts or ports for server-side request forgery. The flaw is an interpretation conflict (CWE-436), and the attacker needs to control a URI or redirect target that the application fetches.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

Guzzle (guzzlehttp/guzzle) before 7.16.3 accepts bracketed request URI hosts that are not IP literals, such as [127.0.0.1]:6379], while PHP's stream transport connects to the host and port inside and after the brackets, regardless of what Uri::getHost() and Uri::getPort() report. Attackers who influence a fetched URI or redirect target can bypass application host and port checks, causing StreamHandler to reach excluded loopback hosts or ports for server-side request forgery.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed guzzle (guzzle): 7.16.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
guzzleguzzlebefore 7.16.37.16.3Patch availableCNA
  • guzzle Vendorguzzle Affected before 7.16.3 Fixed in 7.16.3 Patch available CNA

Remediation

Update Guzzle to version 7.16.3 or later. The sources list no fixed version for other Guzzle releases beyond 7.16.3.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA guzzle (guzzle) Fixed in 7.16.3

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    guzzle 7.16.3

    2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-104265 Guzzle URI Fragment Disclosure via StreamHandlerPriority MEDIUM 43

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-145047
  2. 2026-12-04 CISA SSVC decision points changed

References

  • TI-2022-08589 Improper Input Validation in guzzlehttp/psr7 CVSS 3.1HIGH 7.5
  • TI-2026-104265 Guzzle URI Fragment Disclosure via StreamHandler CVSS 4.0MEDIUM 6.3
  • TI-2022-13088 Fix failure to strip Authorization header on HTTP downgrade in Guzzle CVSS 3.1HIGH 7.5
  • TI-2022-13087 Failure to strip the Cookie header on change in host or HTTP downgrade in Guzzle CVSS 3.1HIGH 7.5
  • TI-2023-13898 Laminas Diactoros vulnerable to HTTP Multiline Header Termination CVSS 3.1HIGH 7.5
  • TI-2022-11789 Cross-domain cookie leakage in Guzzle CVSS 3.1HIGH 8.1
See all 24 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences