Every CVESearch/Get API key

GHSA-c8rp-cgf4-937w

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

No scoreFix available

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

For more information

If you have any questions or comments about this advisory:

What each source reports

GitHub AdvisoriesNo score

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

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

For more information

If you have any questions or comments about this advisory:

Record
GHSA-c8rp-cgf4-937w
Updated
2026-11-02
OSVNo score

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

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

For more information

If you have any questions or comments about this advisory:

Record
GHSA-c8rp-cgf4-937w
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
mezzio/mezzio-swoole
Packagist
before 3.7.0
3.7.0
mezzio/mezzio-swoole
Packagist
4.0.0 up to 4.3.0
4.3.0
mezzio/mezzio-swoole
Packagist
before 3.7.0, plus listed versions
0.1.00.1.10.2.00.2.10.2.2
Show 37 moreShow less
0.2.30.2.41.0.01.0.11.0.22.0.02.0.12.1.02.2.02.2.12.3.02.4.02.4.12.5.02.6.02.6.12.6.22.6.32.6.42.6.52.6.62.7.02.8.02.8.13.0.03.0.13.1.03.1.13.1.23.2.03.2.13.3.03.3.13.4.03.5.03.5.13.6.0
3.7.0
mezzio/mezzio-swoole
Packagist
4.0.0 up to 4.3.0, plus listed versions
4.1.04.1.14.2.0
4.3.0

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

GHSA-c8rp-cgf4-937w is a vulnerability with no CVSS score yet in mezzio/mezzio-swoole, published July 29, 2022. No source lists public exploit code. Fixed in mezzio/mezzio-swoole 3.7.0.

References

MoveEnter Open