CVE-2023-49276 Attribute Injection leading to XSS(Cross-Site-Scripting) in uptime-kuma
Attackers can inject malicious scripts via unsanitized Google Analytics IDs in the custom status interface, leading to XSS attacks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-49276?
CVE-2023-49276 is a medium-severity cross-site scripting vulnerability in louislam uptime-kuma, published on 1 Dec 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Uptime Kuma is an open source self-hosted monitoring tool. In affected versions the Google Analytics element in vulnerable to Attribute Injection leading to Cross-Site-Scripting (XSS). Since the custom status interface can set an independent Google Analytics ID and the template has not been sanitized, there is an attribute injection vulnerability here, which can lead to XSS attacks. This vulnerability has been addressed in commit `f28dccf4e` which is included in release version 1.23.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2023-49276?
2 open source packages ship an affected version, including uptime-kuma. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
uptime-kuma npm | From 1.20.0 | 1.23.7 |
uptime-kuma npm | From 1.20.0 | 1.23.7 |
Products include Uptime.kuma Uptime Kuma.
How do I fix CVE-2023-49276?
Upgrade uptime-kuma to 1.23.7 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-49276 being exploited?
There is no known exploitation of CVE-2023-49276 in the wild and no public exploit code.
Other vulnerabilities in louislam uptime-kuma
- CVE-2023-44400 Uptime Kuma has Persistentent User Sessions
- CVE-2026-33130 Uptime Kuma: SSTI in Notification Templates Allows Arbitrary File Read (Incomplete Fix for GHSA-vffh-c9pq-4crh)
- CVE-2026-32230 Uptime Kuma is Missing Authorization Checks on Ping Badge Endpoint, Leaks Ping times of monitors without needing to be on a status page
Sources
Also known as GHSA-v4v2-8h88-65qj.