CVE-2024-49764: Stored XSS Vulnerability in LibreNMS Allows JavaScript Injection

librenms/librenms Updated 02 Oct 2025

Summary

15/11/2024
Yes i
High
7.5

CVE-2024-49764: A Stored Cross-Site Scripting (XSS) vulnerability in the "Capture Debug Information" page allows authenticated users to inject arbitrary JavaScript through the "hostname" parameter when creating a new device. 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 Penetration testing for web, API and mobile 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 system that provides a robust platform for managing and monitoring network devices. It features automatic discovery, alerting, and a user-friendly web interface. However, it is vulnerable to a Stored Cross-Site Scripting (XSS) issue that can be exploited by authenticated users to inject malicious JavaScript into the application.

Vulnerability Detail

The vulnerability arises from insufficient sanitization of the 'hostname' parameter when creating a new device in LibreNMS. An attacker can exploit this by injecting a crafted payload that executes JavaScript when the 'Capture Debug Information' page is accessed. This can lead to unauthorized actions, such as redirecting users to malicious sites and stealing non-httponly cookies, compromising user accounts and session integrity.

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, restrict access to the 'Capture Debug Information' page to trusted users only, or disable the feature until the update can be applied.

Conclusion

The Stored XSS vulnerability in LibreNMS poses a significant risk to users by allowing attackers to execute malicious scripts. It is crucial to update to the latest version to mitigate this risk and ensure the security of user sessions and sensitive information.

See every vulnerability recorded for librenms/librenms →

Share this vulnerability

FAQ

Stored XSS is a type of security vulnerability where an attacker can inject malicious scripts into a web application, which are then stored on the server and executed in the context of other users.

Authenticated users of LibreNMS can exploit this vulnerability by injecting malicious JavaScript through the 'hostname' parameter when adding a new device.

The impacts include unauthorized access to user sessions, redirection to malicious sites, and theft of sensitive information such as cookies.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

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