GHSA-f7vp-7xgx-4w4r: Medium severity composer/guzzlehttp/guzzle vulnerability

Published Aug 3, 2026
·
Updated

Impact

SetCookie::matchesDomain() gives every subdomain of a cookie Domain that cookie unless it recognizes the Domain as an IP literal or a numeric host, and it decides that from the domain's own text, so two spellings a transport reads as an address keep subdomain scope. On 7.15, hexadecimal and mixed-base forms such as 0x7f000001 and 0177.0.0.0x1 go unrecognized while libcurl 8.21.0 reads both as 127.0.0.1, so closing them completes the rule GHSA-g446-98w2-8p5w (CVE-2026-59883) set out to establish, which cited the WHATWG IPv4 parser and so already admitted a 0x part. A percent-escaped Domain keeps that scope on both branches for a different reason: percent-decoding sits above numeric parsing, so 192.168.0.%31 and 127.0.0.1%2e are registered names in the URI grammar rather than address literals, and no numeric rule in any base classifies them, while libcurl decodes the host before it resolves and reads them as 192.168.0.1 and 127.0.0.1. The escape must fall in the rightmost label on 8.0.0, which already catches a decimal, octal or 0x part there, but not on 7.15, where %31%32%37.0.0.0x1 also reads as 127.0.0.1; 8.0.0 is affected in the percent spelling alone.

Both directions of the defect are reproduced over a real socket. A cookie stored for Domain=0x7f000001 is placed in the Cookie header of a request to evil.0x7f000001, disclosing a session identifier or token to a host that is not that address, and a response from evil.0x7f000001 setting Domain=0x7f000001 is accepted into the jar and replayed to the address, so a server answering for the look-alike name can fix a session or set application state.

Exploitation requires the application to enable cookie support, address an origin by one of these spellings, and contact a host whose name ends in it. No public DNS delegation provides such a name, so the exposure is to private, split-horizon and container zones. Applications that do not use Guzzle's cookies, that keep a separate jar for each host or trust boundary, or that address origins only by ordinary names are not affected.

Patches

This is a summary; the patches are the authority. The issue is fixed in 7.15.2 and 8.0.1, which hold a cookie Domain containing a % byte to an exact match against the request host. 7.15.2 additionally holds to an exact match a Domain whose every dot-separated part is decimal, octal or hexadecimal, a rule wide enough that 0x100000000, a name to libcurl, loses subdomain matching too; 8.0.0 already recognizes a 0x-prefixed rightmost label. One class stays open: an IDN-capable transport reads a fullwidth-digit Domain such as 127.0.0.1 as 127.0.0.1 while Guzzle matches it by suffix, and these patches do not close that. Versions before 7.15.2 and version 8.0.0 are affected, 8.0.0 in the percent spelling alone.

Workarounds

If you cannot upgrade, do not share one CookieJar between an origin addressed by a numeric or percent-escaped spelling and any other host ending in that spelling. Use a separate jar for each host or trust boundary, or address such an origin by its canonical dotted-decimal form, writing 127.0.0.1, which released versions already hold to an exact match, rather than 0x7f000001 or 127.0.0.%31. Rejecting a request URI host that contains a percent escape, before you hand the URI to Guzzle and on every redirect hop, closes that spelling, and rejecting a non-ASCII byte closes the fullwidth one, but nothing outside the jar closes the hexadecimal one.

Do not use filtervar() with FILTERVALIDATEIP to decide whether a domain is an address: it rejects 0x7f000001 and 127.0.0.%31, which a transport reads as 127.0.0.1.

Affected Software

2 affected componentsFixes available
composer/guzzlehttp/guzzle>=8.0.0<8.0.1
8.0.1
composer/guzzlehttp/guzzle<7.15.2
7.15.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/guzzlehttp/guzzle to a version that resolves this vulnerability.

    Fixed in 8.0.1
  2. Upgrade

    Upgrade composer/guzzlehttp/guzzle to a version that resolves this vulnerability.

    Fixed in 7.15.2
  3. Upgrade

    Upgrade Guzzle to a version that resolves this vulnerability.

    Fixed in 7.15.2Patch GHSA-g446-98w2-8p5w
  4. Upgrade

    Upgrade Guzzle to a version that resolves this vulnerability.

    Fixed in 8.0.1Patch CVE-2026-59883
  5. Configuration

    If you cannot upgrade, do not share one `CookieJar` between an origin addressed by a numeric or percent-escaped spelling and any other host ending in that spelling; use a separate jar for each host or trust boundary.

    Guzzle cookies / cookie jars CookieJar sharing across origins = separate
  6. Configuration

    Reject a request URI host that contains a percent escape (e.g., hostnames containing `%31`-style encodings) before handing the URI to Guzzle, and repeat the same rejection on every redirect hop.

    Application HTTP request URI handling before passing to Guzzle Reject URI host percent escapes = true
  7. Configuration

    Reject a request URI host that contains a non-ASCII byte before handing the URI to Guzzle to prevent fullwidth-digit host spellings such as `127.0.0.1` from being interpreted as `127.0.0.1`.

    Application HTTP request URI handling before passing to Guzzle Reject non-ASCII bytes in URI host = true
  8. Configuration

    Address the affected origin using its canonical dotted-decimal form (e.g., `127.0.0.1`) rather than alternate spellings such as `0x7f000001` or `127.0.0.%31`.

    Origin addressing in application Origin hostname representation = canonical dotted-decimal
  9. Configuration

    Do not use `filter_var()` with `FILTER_VALIDATE_IP` to decide whether a domain is an address, since it rejects `0x7f000001` and `127.0.0.%31` while transports may interpret them as `127.0.0.1`.

    Application IP validation logic Domain/IP address validation method = do not use FILTER_VALIDATE_IP with filter_var for domain decisions

Event History

Aug 3, 2026
Advisory Published
via GitHub·09:05 PM
Data Sourced
via GitHub·09:05 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of GHSA-f7vp-7xgx-4w4r?

The severity of GHSA-f7vp-7xgx-4w4r is medium with a score of 6.5.

2

What software is affected by GHSA-f7vp-7xgx-4w4r?

GHSA-f7vp-7xgx-4w4r affects the composer/guzzlehttp/guzzle software.

3

How do I fix GHSA-f7vp-7xgx-4w4r?

To fix GHSA-f7vp-7xgx-4w4r, update to the latest version of the Guzzle library as provided in its security advisory.

4

What impact does GHSA-f7vp-7xgx-4w4r have on applications?

GHSA-f7vp-7xgx-4w4r could lead to improper cookie domain matching, affecting subdomain security.

5

When was GHSA-f7vp-7xgx-4w4r published?

GHSA-f7vp-7xgx-4w4r was published on August 3, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203