CVE-2023-49276 Attribute Injection leading to XSS(Cross-Site-Scripting) in uptime-kuma

Medium 6.3 Published Updated

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.

PackageAffectedFixed in
uptime-kuma npmFrom 1.20.01.23.7
uptime-kuma npmFrom 1.20.01.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.

Sources

Also known as GHSA-v4v2-8h88-65qj.

Is CVE-2023-49276 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free