CVE-2026-27016

LibreNMS has Stored XSS in Custom OID - unit parameter missing strip_tags()

Published Feb 20, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring tool. Versions 24.10.0 through 26.1.1 are vulnerable to Stored XSS via the unit parameter in Custom OID. The Custom OID functionality lacks strip_tags() sanitization while other fields (name, oid, datatype) are sanitized. The unsanitized value is stored in the database and rendered without HTML escaping. This issue is fixed in version 26.2.0.

Analysis

AI-generated

Technical impact

LibreNMS, an auto‑discovery network monitoring tool, stores the value of the unit field in a Custom OID without applying strip_tags() or HTML escaping. The stored value is later rendered on web pages, so an attacker who can inject a crafted unit string can cause arbitrary JavaScript to execute in the browsers of any user who views the page, leading to cookie theft, session hijacking, or further client‑side attacks.

Affected Systems

Versions 24.10.0 through 26.1.1 of the Librenms application are affected. The vulnerability is limited to the Librenms:Librenms product line and is resolved in release 26.2.0.

Risk and Exploitability

The CVSS score of 5.4 indicates a moderate severity, and the EPSS score of less than 1% suggests a low probability of being actively exploited. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to create or edit a Custom OID via the web interface, a privilege normally granted to highly trusted administrators. Once a malicious unit value is stored, any user who views the corresponding page will have the script executed in their browser. The impact is confined to the affected users’ browsers, but the attack can be amplified if social engineering is used to lure other users to the compromised page.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Librenms to version 26.2.0 or later.
  • Delete or sanitize previously stored unit values that may contain malicious scripts.
  • Restrict Custom OID creation/editing to trusted administrators and enforce stricter input validation.

Generated by OpenCVE AI on April 18, 2026 at 11:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fqx6-693c-f55g LibreNMS has a Stored XSS in Custom OID - unit parameter missing strip_tags()
History
Type Values Removed Values Added
CPEs cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Librenms
Librenms librenms
Vendors & Products Librenms
Librenms librenms
Type Values Removed Values Added
Description LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring tool. Versions 24.10.0 through 26.1.1 are vulnerable to Stored XSS via the unit parameter in Custom OID. The Custom OID functionality lacks strip_tags() sanitization while other fields (name, oid, datatype) are sanitized. The unsanitized value is stored in the database and rendered without HTML escaping. This issue is fixed in version 26.2.0.
Title LibreNMS has Stored XSS in Custom OID - unit parameter missing strip_tags()
Weaknesses CWE-116
CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 20, 2026, 3:34 PM
Reserved
Feb 17, 2026, 3:08 AM
Status
Analyzed
Published
Feb 20, 2026, 2:16 AM
Modified
Jun 17, 2026, 10:26 AM