Advisory

GHSA-g84x-g96g-rcjc

Also known as: CVE-2025-23201

Summary

Librenms has a reflected XSS on error alert

Details

XSS on the parameters:/addhost -> param: community

of Librenms versions 24.10.1 (https://github.com/librenms/librenms) allows remote attackers to inject malicious scripts. When a user views or interacts with the page displaying the data, the malicious script executes immediately, leading to potential unauthorized actions or data exposure.

Proof of Concept:

  1. Navigate to the /addhost path.
  2. Fill in all required fields.
  3. In the Community field, enter the following payload: "><img src=a onerror="alert(1)">.

image

  1. Submit the form to save changes.

5 The script will execute when the error alert "No reply with community + payload" appears.
image

Impact:

Execution of Malicious Code

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-01-16 17:33 UTC
Modified
2025-03-25 15:53 UTC

Affected packages and fixes

librenms/librenms

Packagist · All systems

Affected

  • introduced 0, fixed 24.11.0 (ecosystem)

Fixed versions

24.11.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences