# CVE-2024-5312: PHP Server Monitor vulnerable to Cross-site Scripting

Source: https://junglewise.ai/threats/cve-2024-5312-php-server-monitor-vulnerable-to-cross-site-scripting  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-05-24  
License: CC BY 4.0 with a link back

CVE-2024-5312 · Severity: low · CVSS 3.1 · Published 2024-05-24

PHP Server Monitor vulnerable to Cross-site Scripting

Technologies: [phpservermon/phpservermon (Packagist)](https://junglewise.ai/threats/technologies/phpservermon-phpservermon). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2024-5312 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-5312 being exploited in the wild.

**How severe is CVE-2024-5312?** Low severity, with a CVSS score of 3.1, published 24 May 2024.

**Which products and versions are affected?** phpservermon/phpservermon (Packagist) ECOSYSTEM:introduced=0,fixed=3.3.0.

**Is there a fix for CVE-2024-5312?** Yes. phpservermon/phpservermon (Packagist): upgrade to 3.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-5312?** Check whether you run phpservermon/phpservermon (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- phpservermon/phpservermon (Packagist): upgrade to 3.3.0 or later

  ```sh
  composer require phpservermon/phpservermon:^3.3.0
  ```


## Affected products

- phpservermon/phpservermon (Packagist) ECOSYSTEM:introduced=0,fixed=3.3.0

## Identifiers

- CVE-2024-5312
- GHSA-rq7f-j68f-mqh3

## Related threats

- [Insufficient Entropy in PHPServerMon PRNG](https://junglewise.ai/threats/cve-2021-4240-insufficient-entropy-in-phpservermon-prng)
- [PHPServerMon PRNG has Insufficient Entropy](https://junglewise.ai/threats/cve-2021-4241-phpservermon-prng-has-insufficient-entropy)
- [CSRF in PHP Server Monitor before 3.3.2](https://junglewise.ai/threats/cve-2018-18921-csrf-in-php-server-monitor-before-3-3-2)
- [phpservermon is vulnerable to CRLF Injection](https://junglewise.ai/threats/cve-2021-4097-phpservermon-is-vulnerable-to-crlf-injection)
