Executive brief
PHP is a widely used programming language for web development, and PHP-FPM is a component used to manage web requests. A security flaw in the PHP-FPM status page allows an attacker to trick a user into clicking a malicious link that executes unauthorized code in their browser. This could lead to the theft of sensitive session cookies or information displayed on the status page.
Technical details
A reflected cross-site scripting (XSS) vulnerability exists in the PHP-FPM status page due to improper sanitization of the request URI. An unauthenticated remote attacker can craft a malicious URL that, when visited by a victim, executes arbitrary JavaScript in the context of the victim's browser session. This occurs because the status page (in HTML or XML modes) fails to neutralize user-controllable input before rendering it. The vulnerability can be exploited to steal session cookies or sensitive data from the status report. Patches are available in PHP versions 8.2.31, 8.3.31, 8.4.21, and 8.5.6.
Affected products
- PHP Group PHP-FPM (PHP) 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, 8.5.* before 8.5.6
Timeline
- 2026-05-07: advisory: Initial advisory published by PHP Group on GitHub
- 2026-05-10: disclosed: CVE published to NVD