Live threats

All CVEs / Librenms

CVE-2021-31274Librenms

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
Yes
Published
Sep 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

In LibreNMS < 21.3.0, a stored XSS vulnerability was identified in the API Access page due to insufficient sanitization of the $api->description variable. As a result, arbitrary Javascript code can get executed.

Original NVD text.

What to do

  1. Apply the vendor's security update for Librenms.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist librenms/librenms < 21.3.0 21.3.0 composer require "librenms/librenms:^21.3.0"

Per OSV / GitHub Advisories (GHSA-2r2w-jrh2-p4gr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
librenmslibrenms< 21.3.0

Official sources

References

Links published by the sources. Open them with care.