Skip to main content

CVE-2025-47931 — Vulnerability in librenms/librenms — CVE Details

LOW

LibreNMS stored Cross-site Scripting vulnerability in poller group name

Published May 19, 2025Updated May 19, 2025Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.59%). Schedule for your next planned update.

Does your project use an affected librenms/librenms version?

Paste your composer.lock to check it for CVE-2025-47931 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

LibreNMS v25.4.0 suffers from Stored Cross-Site Scripting (XSS) Vulnerability in the 'group name' parameter of the 'http://localhost/poller/groups' form. This vulnerability allows attackers to inject malicious scripts into web pages viewed by other users.

---------------------------------POC-----------------------------

Before Setting: Enable 'distributed_poller' in http://localhost/settings/poller/distributed

  1. Attacker creates a new poller group and injects the payload in the 'group name' parameter
payload: <script>alert('XSS')</script>
  1. Victim navigates to the 'http://localhost/addhost' to add a new host
  2. The payload is executed

code sink: https://github.com/librenms/librenms/blob/25.4.0/includes/html/pages/addhost.inc.php#L284

Advisory Timeline

  • First published May 19, 2025 (556 days ago).
  • Last revised May 19, 2025 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update librenms/librenms to 25.5.0 or later
composer require "librenms/librenms:^25.5.0"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
librenms/librenms Packagist · Affected: 1.19, 1.20, 1.20.1, 1.21 (+134 more)25.5.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P

Frequently Asked Questions

What is CVE-2025-47931?
LibreNMS stored Cross-site Scripting vulnerability in poller group name. This vulnerability has been assigned a severity rating of LOW (CVSS score: 6.1/10).
How do I check if my project is affected by CVE-2025-47931?
CVE-2025-47931 affects librenms/librenms. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-47931 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.1

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.59%
EPSS percentile: 42.1

This is a below-median EPSS score — only 42.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-hxw5-9cc5-cmw5

Related CVEs

  • CVE-2026-55182
    HIGH

    LibreNMS Vulnerable to Remote Code Execution by Signal Alert Transportation module

  • CVE-2024-32461
    HIGH

    LibreNMS vulnerable to SQL injection time-based leads to database extraction

  • CVE-2024-47524
    HIGH

    LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name

  • CVE-2024-49754
    HIGH

    LibreNMS has a stored XSS ('Cross-site Scripting') in librenms/includes/html/pages/api-access.inc.php

  • CVE-2025-54138
    HIGH

    LibreNMS has Authenticated Remote File Inclusion in ajax_form.php that Allows RCE

  • CVE-2025-62411
    MEDIUM

    LibreNMS has a Stored XSS vulnerability in its Alert Transport name field

  • CVE-2025-23201
    MEDIUM

    Librenms has a reflected XSS on error alert

  • CVE-2024-47526
    LOW

    LibreNMS has Stored Cross-site Scripting vulnerability in "Alert Templates" feature

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock