---
title: "CVE-2024-47526"
date: "2024-10-01T07:00:00+00:00"
url: "https://checkmarx.com/zero/vulnerabilities/cve-2024-47526/"
---

# CVE-2024-47526

[Disclosed vulnerabilities](https://checkmarx.com/zero/vulnerabilities/)

Fixed: Sep 29, 2024

CVE-2024-47526  **Published:** Oct 1, 2024

CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')  3.5 Low Severity librenms Self-XSS XSS

RS Raphael Silva  Reported by Checkmarx Zero

Details Overview

## Summary

A Self Cross-Site Scripting (Self-XSS) vulnerability in the “Alert Templates” feature of the `@LibreNMS/LibreNMS` project allows users to inject arbitrary JavaScript into the alert template’s name. This script executes immediately upon submission but does not persist after a page refresh.

## Product

This vulnerability affects LibreNMS versions prior to 24.9.0, specifically in `librenms/includes/html/modal/alert_template.inc.php`.

## Impact

This vulnerability can lead to the execution of malicious code in the context of other users’ sessions, potentially compromising their accounts and allowing unauthorized actions.

## Steps to reproduce

1. Log into the LibreNMS web interface and navigate to **Alert Templates**.
2. In the **Name** field, enter: `test1<script>{onerror=alert}throw 1337</script>`
3. Submit the form to create the alert template.
4. Observe that the JavaScript executes immediately, triggering an alert. Note that the payload does **not** persist after refreshing the page.

### Expected result:

The XSS is triggered, and an alert is shown.

## Remediation

Fixed in LibreNMS 24.9.0 by HTML-encoding the template name before rendering. In `modal/alert_template.inc.php`, the `name` variable is now escaped before appending to the table, preventing XSS.

## Credit

This issue was discovered and reported by Checkmarx Security Researcher [Raphael Silva](https://www.linkedin.com/in/raphaelcssilva/).

## Resources

1. [GHSA-gcgp-q2jq-fw52](https://github.com/advisories/GHSA-gcgp-q2jq-fw52)
2. [Fix commit](https://github.com/librenms/librenms/commit/f259edc19b9f0ccca484c60b1ba70a0bfff97ef5)
3. [NVD entry for CVE-2024-47526](https://nvd.nist.gov/vuln/detail/CVE-2024-47526)

0  Low Severity CVSS v3.1 Score

   3.5

CVSS v3.1 Vectors- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: High
- User Interaction: Required
- Scope: Unchanged
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None

Advisory Timeline1. Discovered Jul 31, 2024
2. Disclosed Aug 19, 2024
3. Fixed Sep 29, 2024 Patch released in LibreNMS 24.9.0

## Explore more findings

[22 Apr 2026 CVE-2026-42236  Unauthenticated Denial of Service in n8n via MCP Client Registration   8.7  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-4223/) [22 Apr 2026 CVE-2026-42230  n8n has Open Redirect in MCP OAuth Consent Flow   5.1  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-42230/) [27 Feb 2026 CVE-2026-27578  n8n Vulnerable to Stored XSS via Various Nodes   8.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27578/) [26 Feb 2026 CVE-2026-27950  Use-after-free in FreeRDP SDL2   5.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27950/) [27 Nov 2025 CVE-2025-34281  Stored Cross-Site Scripting (XSS) in ThingsBoard   6.2  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-34281/) [17 Jan 2025 CVE-2025-0825  HTTP Response Splitting in cpp-httplib   6.9  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-0825/) [17 Jun 2025 CVE-2025-6050  Stored Cross-Site Scripting (XSS) in Mezzanine CMS Admin Interface   4.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-6050/) [12 Dec 2024 CVE-2024-8374  Code Injection in UltiMaker Cura   7.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-8374/) [14 Nov 2024 CVE-2024-52526  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-52526/) [14 Nov 2024 CVE-2024-51497  Stored Cross-site Scripting in @LibreNMS/LibreNMS Custom OID Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51497/) [14 Nov 2024 CVE-2024-51496  Reflected Cross-site Scripting in @LibreNMS/LibreNMS /wireless and /health endpoints   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51496/) [  14 Nov 2024 CVE-2024-51495  Stored Cross-site Scripting in @LibreNMS/LibreNMS Device Overview `overwrite\_ip` Field   7.5  Visit the page ](https://checkmarx.com/zero/vulnerabilities/cve-2024-51495/)
