CVE-2024-5312: PHP Server Monitor vulnerable to Cross-site Scripting
6.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.39289%
CWE
Published
5/24/2024
Updated
5/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| phpservermon/phpservermon | composer | <= 3.2.0 | 3.3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability exists in PHPMailer's test script included with PHP Server Monitor. The commit diff shows this script was removed/renamed in patched versions. The test script's parameters are reflected in HTML output without proper sanitization (no visible use of htmlspecialchars or equivalent). This matches the XSS pattern described in CWE-79 where user input is directly embedded in generated web pages.