CVE-2024-51496: Reflected XSS Vulnerability in LibreNMS Package

librenms/librenms Updated 02 Oct 2025

Summary

15/11/2024
Yes i
High
7.5

CVE-2024-51496: LibreNMS has a Reflected XSS ('Cross-site Scripting') in librenms/includes/html/pages/wireless.inc.php. Affects librenms/librenms versions < 24.10.0. Fixed in 24.10.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

LibreNMS is an open-source network monitoring tool that provides a robust platform for monitoring network devices and services. It features an intuitive web interface, supports a wide range of devices, and offers alerting capabilities. However, like many web applications, it is susceptible to security vulnerabilities, including Cross-Site Scripting (XSS), which can compromise user sessions and lead to unauthorized actions.

Vulnerability Detail

The vulnerability is a Reflected Cross-Site Scripting (XSS) issue found in the 'metric' parameter of the '/wireless' and '/health' endpoints. Attackers can exploit this vulnerability by injecting arbitrary JavaScript code into the 'metric' parameter, which executes when a user accesses the page with the malicious parameter. This occurs due to inadequate sanitization of user input, allowing for the execution of harmful scripts in the context of the user's session. The potential ramifications include session hijacking and unauthorized actions, making it a critical security concern.

How To Fix

Minimum fixed version

24.10.0

This is the first release that contains the fix.

composer require librenms/librenms:24.10.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users should avoid accessing the '/wireless' and '/health' endpoints with untrusted or manipulated 'metric' parameters until the package is updated. Additionally, implementing input validation and sanitization on the server side can help mitigate the risk of XSS attacks.

Conclusion

CVE-2024-51496 is a significant reflected XSS vulnerability in the LibreNMS package that can lead to severe security implications for users. It is crucial to update to the latest version to mitigate this risk and ensure the safety of user sessions. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for librenms/librenms →

Share this vulnerability

FAQ

CVE-2024-51496 is a reflected XSS vulnerability in the LibreNMS package that allows attackers to inject and execute arbitrary JavaScript code.

If you are using LibreNMS version 24.9.1 or earlier, your installation is vulnerable. You can check your version in the application settings or by running 'composer show' in your project directory.

The vulnerability can lead to session hijacking, unauthorized actions, and further exploitation through malicious scripts, compromising user security.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using the composer.lock file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

The CVSS score for CVE-2024-51496 is 7.5, indicating a high severity level for this security issue.

Related vulnerabilities

Recent vulnerabilities recorded for librenms/librenms.

How To Fix

Minimum fixed version

24.10.0

This is the first release that contains the fix.

composer require librenms/librenms:24.10.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback