CVE-2023-4981: LibreNMS Cross-site Scripting vulnerability

librenms/librenms Updated 02 Oct 2025

Summary

15/09/2023
Yes i
Moderate
5.4

CVE-2023-4981: LibreNMS Cross-site Scripting vulnerability. Affects librenms/librenms versions < 23.9.0. Fixed in 23.9.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 and management tool. It provides a comprehensive set of features for monitoring network devices, collecting performance data, and generating alerts. The vulnerability identified in this report is a Cross-site Scripting (XSS) vulnerability in the GitHub repository of LibreNMS prior to version 23.9.0. This vulnerability allows an attacker to inject malicious scripts into web pages viewed by users, potentially leading to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The Cross-site Scripting (XSS) vulnerability in LibreNMS arises from a failure to properly sanitize user-supplied input. This allows an attacker to inject arbitrary JavaScript code into web pages viewed by users. When a vulnerable page is loaded, the injected code is executed in the context of the victim's browser, potentially leading to the theft of sensitive information, session hijacking, or other malicious actions. The impact of this vulnerability is rated as HIGH with a CVSS score of 8.8.

How To Fix

Minimum fixed version

23.9.0

This is the first release that contains the fix.

composer require librenms/librenms:23.9.0

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

Workaround

If upgrading to the latest version is not immediately possible, a temporary workaround is to disable user-generated content or implement input validation and sanitization measures to prevent the execution of malicious scripts. This can be achieved by implementing strict input filtering and encoding techniques to neutralize any potential script injection attempts.

Conclusion

The Cross-site Scripting (XSS) vulnerability in LibreNMS prior to version 23.9.0 poses a significant security risk, allowing attackers to inject malicious scripts into web pages viewed by users. To mitigate this vulnerability, it is crucial to upgrade to the latest version of LibreNMS (23.9.0 or later) or implement appropriate input validation and sanitization measures. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for librenms/librenms →

Share this vulnerability

FAQ

LibreNMS is an open-source network monitoring and management tool that provides a comprehensive set of features for monitoring network devices, collecting performance data, and generating alerts.

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by users. This can lead to unauthorized access, data theft, or other malicious activities.

The impact of this vulnerability is rated as HIGH with a CVSS score of 8.8. It allows an attacker to inject arbitrary JavaScript code into web pages, potentially leading to the theft of sensitive information, session hijacking, or other malicious actions.

To fix this vulnerability, it is recommended to upgrade to LibreNMS version 23.9.0 or later. This version includes the necessary fixes to properly sanitize user input and prevent the execution of injected scripts.

If upgrading to the latest version is not immediately possible, a temporary workaround is to disable user-generated content or implement input validation and sanitization measures to prevent the execution of malicious scripts.

Related vulnerabilities

Recent vulnerabilities recorded for librenms/librenms.

How To Fix

Minimum fixed version

23.9.0

This is the first release that contains the fix.

composer require librenms/librenms:23.9.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