banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27016

CVE-2026-27016: LibreNMS Custom OID XSS Vulnerability

CVE-2026-27016 is a stored cross-site scripting flaw in LibreNMS affecting versions 24.10.0 to 26.1.1 through the Custom OID unit parameter. This article covers technical details, affected versions, and fixes.

Published: February 27, 2026

CVE-2026-27016 Overview

LibreNMS, an auto-discovering PHP/MySQL/SNMP-based network monitoring tool, contains a Stored Cross-Site Scripting (XSS) vulnerability in versions 24.10.0 through 26.1.1. The vulnerability exists in the Custom OID functionality where the unit parameter lacks proper sanitization using strip_tags(), unlike other fields such as name, oid, and datatype which are properly sanitized. The unsanitized value is stored directly in the database and subsequently rendered without HTML escaping, allowing attackers with authenticated access to inject malicious scripts that execute in the context of other users viewing the affected pages.

Critical Impact

Authenticated attackers can inject persistent malicious scripts through the Custom OID unit parameter, potentially compromising admin sessions, stealing credentials, or performing unauthorized actions within the LibreNMS network monitoring infrastructure.

Affected Products

  • LibreNMS versions 24.10.0 through 26.1.1
  • LibreNMS Custom OID functionality (customoid.inc.php)
  • All deployments using Custom OID features without proper input sanitization

Discovery Timeline

  • 2026-02-20 - CVE-2026-27016 published to NVD
  • 2026-02-20 - Last updated in NVD database

Technical Details for CVE-2026-27016

Vulnerability Analysis

This Stored XSS vulnerability stems from inconsistent input sanitization in the LibreNMS Custom OID form handler. The vulnerability allows authenticated users to inject arbitrary JavaScript code through the unit parameter when creating or modifying Custom OID entries. Because the malicious payload is stored in the database, it persists and executes every time the affected Custom OID data is rendered in the web interface.

The attack requires authenticated access to LibreNMS with permissions to create or modify Custom OID entries. When a victim user views pages displaying the compromised Custom OID data, the injected script executes in their browser context, potentially enabling session hijacking, credential theft, or unauthorized administrative actions.

Root Cause

The root cause is a missing strip_tags() function call on the unit parameter in the includes/html/forms/customoid.inc.php file. While other user-controlled parameters (name, oid, datatype) are properly sanitized using strip_tags() to remove HTML tags, the unit parameter is directly assigned from $_POST['unit'] without any sanitization. This inconsistency creates an injection point where HTML and JavaScript content can be inserted into the database and subsequently rendered without proper encoding.

Attack Vector

The attack vector involves an authenticated user with Custom OID creation/modification privileges submitting a malicious payload through the unit parameter. The payload bypasses the missing sanitization and is stored in the database. When any user accesses a page that displays the Custom OID unit value, the stored script executes in their browser, leveraging the trust relationship between the user's browser and the LibreNMS application.

php
// Vulnerable code - unit parameter lacks strip_tags() sanitization
// Source: includes/html/forms/customoid.inc.php

 $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'];

Source: GitHub Commit 3bea263

Detection Methods for CVE-2026-27016

Indicators of Compromise

  • Custom OID entries containing HTML tags or JavaScript code in the unit field
  • Database entries in the Custom OID table with <script>, <img>, or other HTML elements in unit values
  • Unusual JavaScript execution or browser behavior when viewing Custom OID pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Monitor application logs for unusual Custom OID creation or modification activities
  • Perform regular database audits to identify unit field values containing HTML or script tags
  • Deploy Web Application Firewall (WAF) rules to detect XSS payload patterns in POST requests

Monitoring Recommendations

  • Enable detailed logging for Custom OID form submissions and database modifications
  • Monitor user sessions for signs of hijacking or unexpected privilege usage
  • Set up alerts for JavaScript errors or CSP violations in client browsers
  • Audit Custom OID entries periodically for malicious content patterns

How to Mitigate CVE-2026-27016

Immediate Actions Required

  • Upgrade LibreNMS to version 26.2.0 or later immediately
  • Review existing Custom OID entries in the database for potential malicious content in the unit field
  • Restrict Custom OID creation/modification permissions to trusted administrators only
  • Implement Content Security Policy headers to mitigate script execution risks

Patch Information

LibreNMS has addressed this vulnerability in version 26.2.0. The fix applies strip_tags() sanitization to the unit parameter, consistent with the sanitization already applied to other fields. The patch is available in GitHub Pull Request #19040 and the fix commit is documented in the GitHub Commit 3bea263. For detailed information, refer to the GitHub Security Advisory GHSA-fqx6-693c-f55g.

Workarounds

  • Restrict access to Custom OID functionality to trusted administrators only
  • Implement Web Application Firewall (WAF) rules to filter XSS payloads in POST requests to Custom OID endpoints
  • Add Content Security Policy headers to prevent inline script execution
  • Manually sanitize existing database entries by removing HTML tags from Custom OID unit fields
bash
# Configuration example - Add CSP headers to Apache configuration
# Add to your LibreNMS Apache virtual host configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

# Database cleanup - Find potentially malicious unit entries
mysql -u librenms -p -e "SELECT id, name, unit FROM librenms.customoids WHERE unit REGEXP '<[^>]+>';"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechLibrenms

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Pull Request

  • GitHub Release 26.2.0

  • GitHub Security Advisory GHSA-fqx6-693c-f55g
  • Vendor Resources
  • GitHub Commit Log
  • Related CVEs
  • CVE-2026-26987: LibreNMS Reflected XSS Vulnerability

  • CVE-2026-26989: LibreNMS Stored XSS Vulnerability

  • CVE-2026-26991: LibreNMS Device Group XSS Vulnerability

  • CVE-2026-26992: LibreNMS Stored XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use