CWE
79
Advisory Published
CVE Published
Updated

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

First published: Fri Nov 24 2023(Updated: )

### Summary Google Analytics element Attribute Injection leading to XSS ### Details 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. ![image](https://user-images.githubusercontent.com/110759348/282278047-667b774b-421f-449a-8f95-3f3906ae4216.png) ### PoC 1. Run the latest version of the louislam/uptime-kuma container and initialize the account password. 2. Create a new status page. 3. Edit the status page and change the Google Analytics ID to following payload(it only works for firefox. Any attribute can be injected, but this seems the most intuitive): ``` 123123" onafterscriptexecute=alert(window.name+1),eval(window.name) a="x ``` 4. Click Save and return to the interface. XSS occurs. screenshots: ![image](https://user-images.githubusercontent.com/110759348/282287393-4874974f-9416-4941-9c2e-a92ee2412197.png) ![9d0603e634fb7da2e83a0a45dc0a36ac](https://user-images.githubusercontent.com/110759348/282287346-1deb0382-520f-47cf-b191-9b7d19c47879.png)

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
npm/uptime-kuma>=1.20.0<=1.23.6
1.23.7
Uptime Kuma>=1.20.0<1.23.7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID?

    The vulnerability ID is CVE-2023-49276.

  • What is the severity of CVE-2023-49276?

    The severity of CVE-2023-49276 is medium with a CVSS score of 6.3.

  • What is the affected software?

    The affected software is uptime-kuma version 1.20.0 to 1.23.6.

  • How can the attribute injection vulnerability in uptime-kuma be exploited?

    The attribute injection vulnerability in uptime-kuma can be exploited by setting an independent Google Analytics ID in the custom status interface.

  • How can the attribute injection vulnerability in uptime-kuma be fixed?

    The attribute injection vulnerability in uptime-kuma can be fixed by updating to version 1.23.7 of the software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203