VYPR
Moderate severityNVD Advisory· Published Feb 20, 2026· Updated Feb 20, 2026

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

CVE-2026-27016

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
librenms/librenmsPackagist
>= 24.10.0, < 26.2.026.2.0

Affected products

1

Patches

1
3bea263e0244

Fix xss (#19040)

https://github.com/librenms/librenmsTony MurrayFeb 16, 2026via ghsa
1 file changed · +1 1
  • includes/html/forms/customoid.inc.php+1 1 modified
    @@ -18,7 +18,7 @@
     $name = strip_tags((string) $_POST['name']);
     $oid = strip_tags((string) $_POST['oid']);
     $datatype = strip_tags((string) $_POST['datatype']);
    -$unit = $_POST['unit'];
    +$unit = strip_tags((string) $_POST['unit']);
     $limit = $_POST['limit'];
     $limit_warn = $_POST['limit_warn'];
     $limit_low = $_POST['limit_low'];
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.