Read the docs
TI-2022-26612 Aliases GHSA-c8rp-cgf4-937w

mezzio-swoole Applications Using Diactoros Vulnerable to HTTP Host Header Attack

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact mezzio-swoole applications using Diactoros for their PSR-7 implementation, and which are either not behind a proxy, or can be accessed via untrusted proxies, can potentially have the host, protocol, and/or port of a `Laminas\Diactoros\Uri` instance associated with the incoming server request modified to reflect values from `X-Forwarded-*` headers. Such changes can potentially lead to XSS attacks (if a fully-qualified URL is used in links) and/or URL poisoning. ### Patches 3.7.0, and 4.3.0 and later. The patches present in these versions update the `SwooleServerRequestFactory` to filter out `X-Forwarded-*` headers when creating the initial request. They then by default pass that instance through a `Laminas\Diactoros\ServerRequestFilter\FilterUsingXForwardedHeaders` instance created from the `trustReservedSubnet()` constructor, ensuring that the request only honors the `X-Forwarded-*` headers for private reserved subnets. Users can define the `Laminas\Diactoros\ServerRequestFilter\FilterServerRequestInterface` service if they wish to provide a different implementation, or configure the `FilterUsingXForwardedHeaders` instance differently. When defined, that instance will be used to filter the generated request instance. ### Workarounds Infrastructure or DevOps can place a trusted reverse proxy in front of the mezzio-swoole server. ### References - [HTTP Host Header Attacks](https://portswigger.net/web-security/host-header) ### For more information If you have any questions or comments about this advisory: - Open an issue in [mezzio/mezzio-swoole](https://github.com/mezzio/mezzio-swoole/) - [Email us](mailto:[email protected])

Why it matters now

Fix Fixed mezzio/mezzio-swoole (Packagist): 3.7.0, 4.3.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mezzio/mezzio-swoole (Packagist)before 3.7.03.7.0Patch availableGHSA-c8rp-cgf4-937w
—mezzio/mezzio-swoole (Packagist)4.0.0 to before 4.3.04.3.0Patch availableGHSA-c8rp-cgf4-937w
  • mezzio/mezzio-swoole (Packagist) Vendor— Affected before 3.7.0 Fixed in 3.7.0 Patch available GHSA-c8rp-cgf4-937w
  • mezzio/mezzio-swoole (Packagist) Vendor— Affected 4.0.0 to before 4.3.0 Fixed in 4.3.0 Patch available GHSA-c8rp-cgf4-937w

Remediation

  • Fix · GHSA-c8rp-cgf4-937w mezzio/mezzio-swoole (Packagist) Fixed in 3.7.0 Advisory →
  • Fix · GHSA-c8rp-cgf4-937w mezzio/mezzio-swoole (Packagist) Fixed in 4.3.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-c8rp-cgf4-937w

References

Sources

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