CVE-2022-0576: Cross-site Scripting in librenms

librenms/librenms Updated 02 Oct 2025

Summary

15/02/2022
Yes i
Moderate
6.1

CVE-2022-0576: Cross-site Scripting in librenms. Affects librenms/librenms versions < 22.1.0. Fixed in 22.1.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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

LibreNMS is an open-source network monitoring tool that provides comprehensive monitoring and alerting for networks of all sizes. It offers features such as automatic discovery, device polling, and graphing of network metrics. However, prior to version 22.1.0, LibreNMS is vulnerable to a Cross-site Scripting (XSS) attack.

Vulnerability Detail

The vulnerability allows an attacker to inject malicious scripts into web pages viewed by users of the affected LibreNMS instance. This can lead to various consequences, including unauthorized access to sensitive information, session hijacking, and the execution of arbitrary code in the context of the user's browser. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Minimum fixed version

22.1.0

This is the first release that contains the fix.

composer require librenms/librenms:22.1.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 feasible, a temporary workaround is to implement input validation and output encoding to prevent the execution of malicious scripts. This can be achieved by using security libraries or frameworks that provide built-in protection against XSS attacks.

Conclusion

In conclusion, LibreNMS prior to version 22.1.0 is vulnerable to a Cross-site Scripting (XSS) attack. To mitigate this vulnerability, it is crucial to upgrade to version 22.1.0 or later. Implementing input validation and output encoding can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for librenms/librenms →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary scripts in the context of the user's browser, potentially leading to unauthorized access to sensitive information and other malicious activities.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is important to promptly apply the recommended fix to mitigate the risk.

No, only versions prior to 22.1.0 are affected. It is crucial to upgrade to the latest version to ensure the vulnerability is addressed.

Yes, this vulnerability can be exploited remotely by an attacker who can trick a user into visiting a malicious website or clicking on a specially crafted link.

While this vulnerability can be difficult to detect, monitoring network traffic and analyzing logs for suspicious activities can help identify potential compromises. It is also recommended to regularly update and patch LibreNMS to minimize the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for librenms/librenms.

How To Fix

Minimum fixed version

22.1.0

This is the first release that contains the fix.

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