CVE-2021-44279
Description
Librenms 21.11.0 is affected by a Cross Site Scripting (XSS) vulnerability in includes/html/forms/poller-groups.inc.php.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
librenms/librenmsPackagist | <= 21.11.0 | — |
Affected products
2- Librenms/Librenmsdescription
Patches
Vulnerability mechanics
Root cause
"User-controllable input from $_POST and $_GET parameters is echoed directly into HTML output without HTML entity encoding."
Attack vector
An attacker can inject arbitrary JavaScript or HTML by submitting crafted input to any of the unsanitized form fields (e.g., `package`, `version`, `arch`, `string`, `serial`, `device_string`, `bill_code`, `address`, `searchPhrase`, `state`, `min_severity`, `device_id`, `config`, `sensor_desc`, `id`, `token`, `description`). The injected payload is stored in the page's HTML and executed in the victim's browser when they view the affected page, leading to cross-site scripting (XSS) [CWE-79]. No authentication bypass is required; the attacker only needs to be able to submit a POST or GET request to the vulnerable endpoint.
Affected code
The vulnerability is in `includes/html/forms/poller-groups.inc.php` (as stated in the CVE description) and the patch also fixes XSS in multiple other files including `includes/html/pages/search/packages.inc.php`, `includes/html/pages/inventory.inc.php`, `includes/html/pages/bill.inc.php`, `includes/html/pages/search/mac.inc.php`, `includes/html/pages/search/arp.inc.php`, `includes/html/common/alert-log.inc.php`, `includes/html/pages/device/showconfig.inc.php`, `includes/html/forms/sensor-alert-update.inc.php`, `includes/html/pages/delhost.inc.php`, and `includes/html/pages/api-access.inc.php`. The root cause is that user-controllable input from `$_POST` and `$_GET` parameters was echoed directly into HTML output without sanitization.
What the fix does
The patch wraps every user-controlled `$_POST` and `$_GET` value with `htmlspecialchars()` before echoing it into HTML output. This function converts special HTML characters (like `<`, `>`, `&`, `"`) into their corresponding HTML entities, preventing the browser from interpreting injected markup or script tags as executable code. The fix is applied at the source (the output point) rather than only at the JSON encode sink, ensuring that all reflected input is safely neutralized regardless of context.
Preconditions
- networkThe attacker must be able to submit HTTP POST or GET requests to the vulnerable LibreNMS pages.
- authNo special authentication or privilege is required beyond being able to reach the web interface.
Generated on Jun 20, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/advisories/GHSA-5vr6-hm68-5j9pghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-44279ghsaADVISORY
- github.com/librenms/librenms/pull/13554ghsax_refsource_MISCWEB
- github.com/librenms/librenms/pull/13554/commits/4f231a0f49b6c953d506913364ffd7fb3a660630ghsaWEB
News mentions
0No linked articles in our index yet.