Vulnerability DatabaseGHSA-c8rp-cgf4-937w

GHSA-c8rp-cgf4-937w
PHP vulnerability analysis and mitigation

Overview

A high-severity vulnerability (GHSA-c8rp-cgf4-937w) was identified in mezzio-swoole applications using Diactoros for their PSR-7 implementation. The vulnerability was published on July 25, 2022, and affects versions < 3.7.0 and versions >= 4.0.0, < 4.3.0 of the mezzio/mezzio-swoole package. This security issue is particularly concerning for applications that are either not behind a proxy or can be accessed via untrusted proxies (GitHub Advisory).

Technical details

The vulnerability allows modification of the host, protocol, and/or port of a Laminas\Diactoros\Uri instance associated with the incoming server request to reflect values from X-Forwarded-* headers. This occurs in the context of HTTP Host Header handling, potentially compromising the application's security (GitHub Advisory).

Impact

The exploitation of this vulnerability can lead to Cross-Site Scripting (XSS) attacks when fully-qualified URLs are used in links, and/or URL poisoning. This poses significant risks to applications that rely on the affected components (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 3.7.0 and 4.3.0 and later. The patches update the SwooleServerRequestFactory to filter out X-Forwarded-* headers when creating the initial request and implement a FilterUsingXForwardedHeaders instance that only honors X-Forwarded-* headers for private reserved subnets. As a workaround, organizations can place a trusted reverse proxy in front of the mezzio-swoole server (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2025-14894HIGH7.5
  • PHPPHP
  • livewire-filemanager/filemanager
NoNoJan 16, 2026
CVE-2026-23626MEDIUM6.8
  • PHPPHP
  • kimai/kimai
NoYesJan 18, 2026
CVE-2025-69198MEDIUM6
  • PHPPHP
  • pterodactyl/panel
NoYesJan 19, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management