Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. librenms/librenms
  4. ›
  5. GHSA-pm8j-3v64-92cq

GHSA-pm8j-3v64-92cq: LibreNMS Display Name Stored Cross-site Scripting vulnerability

January 16, 2025

Description:

XSS on the parameters (Replace $DEVICE_ID with your specific $DEVICE_ID value):/device/$DEVICE_ID/edit -> param: display

of Librenms versions 24.9.0, 24.10.0, and 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. Add a new device through the LibreNMS interface.

  2. Edit the newly created device by going to the “Device Settings” section.

  3. In the “Display Name” field, enter the following payload: "><script>alert(1)</script>.

    Click to open external image

  4. Save the changes.

  5. The XSS payload triggers when accessing the “/apps” path (if an application was previously added).

    Click to open external image

Additional PoC:

  1. In the “Display Name” field, enter the following payload: "><img src onerror="alert(1)">.

    Click to open external image

  2. The XSS vulnerability is triggered when accessing the “/ports” path, and the payload executes when hovering over the modified value in the “Port” field.

    Click to open external image

  • on /device/$DEVICE_ID/ports/arp path:

    Click to open external image

  • on /device/$DEVICE_ID/logs path:

    Click to open external image

  • on /search/search=arp/ path:

    Click to open external image

Impact:

Execution of Malicious Code

References

  • github.com/advisories/GHSA-pm8j-3v64-92cq
  • github.com/librenms/librenms
  • github.com/librenms/librenms/commit/afe92dbf4321f107012690d476685603d1ccb013
  • github.com/librenms/librenms/security/advisories/GHSA-pm8j-3v64-92cq

Code Behaviors & Features

Detect and mitigate GHSA-pm8j-3v64-92cq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 24.9.0 before 24.11.0

Fixed versions

  • 24.11.0

Solution

Upgrade to version 24.11.0 or above.

Impact 4.6 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/librenms/librenms/GHSA-pm8j-3v64-92cq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.