LibreNMS has a Stored XSS vulnerability in its Alert Transport name field
Impact
LibreNMS
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 25.10.0Ecosystem versions | 25.10.0 |
Version evidence: OSV · GHSA-frc6-pwgr-c28w
View original version evidence (144 explicit versions)
Original source description
Summary
LibreNMS <= 25.8.0 contains a Stored Cross-Site Scripting (XSS) vulnerability in the Alert Transports management functionality. When an administrator creates a new Alert Transport, the value of the Transport name field is stored and later rendered in the Transports column of the Alert Rules page without proper input validation or output encoding. This leads to arbitrary JavaScript execution in the admin’s browser.
Details
- Injection point:
Transport namefield in/alert-transports. - Execution point: Transports column in
/alert-rules. - Scope: Only administrators can create Alert Transports, and only administrators can view the affected Alert Rules page. Therefore, both exploitation and impact are limited to admin users.
Steps to reproduce
-
Log in with an administrator account.
-
Navigate to:
http://localhost:8000/alert-transports -
Click Create alert transport and provide the following values:
-
Transport name:
'onfocus='alert(1)' autofocus= -
Default Alert:
ON -
Email:
test@gmail.com(or any valid email)
Save the transport.
-
-
Navigate to
http://localhost:8000/alert-rules. A popupalert(1)is triggered, confirming that the payload executes. <img width="1829" height="396" alt="image" src="https://github.com/user-attachments/assets/932ba17d-214d-4253-80b8-62539d1cfa28" />
Impact
Only accounts with the admin role who access the Alert Rules page (http://localhost:8000/alert-rules) are affected.
References
- Security advisory github.com/librenms/librenms/security/advisories/GHSA-frc6-pwgr-c28w
- Security advisory nvd.nist.gov/vuln/detail/CVE-2025-62411
- Patch github.com/librenms/librenms/commit/706a77085f4d5964f7de9444208ef707e1f79450
- Patch github.com/librenms/librenms/commit/e1ead366239b57e88f9a06d4f7c213b1e2530cd8
- Source reference github.com/librenms/librenms
- Release notes github.com/librenms/librenms/releases/tag/25.10.0