# Komari management interface CSRF

Source: https://junglewise.ai/threats/komari-management-interface-csrf-b9b45191  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-09. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: high · CVSS 8.8 · Published 2026-09-09

Komari is a monitoring platform used to manage and execute tasks on remote nodes. Its administrative interface lacks cross-site request forgery (CSRF) protection, meaning an attacker can trick an authenticated administrator into performing unauthorized actions such as executing shell commands on managed nodes, disabling two-factor authentication, or clearing monitoring records. While modern browsers block such attacks by default, the vulnerability remains exploitable in older browsers or if the administrator is already compromised by XSS malware.

Technologies: [github.com/komari-monitor/komari (Go)](https://junglewise.ai/threats/technologies/github-com-komari-monitor-komari). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** High severity, with a CVSS score of 8.8, published 9 September 2026.

**Which products and versions are affected?** github.com/komari-monitor/komari (Go) < 0.0.0-20260609084633-98122fa4d110; Komari Monitor < 0.0.0-20260609084633-98122fa4d110.

**Is there a fix for This vulnerability?** A patch was published on 2026-06-09: Patch released in version 0.0.0-20260609084633-98122fa4d110 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a web application.

**Am I affected?** Check whether you run github.com/komari-monitor/komari (Go) or Komari Monitor at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

This is a cross-site request forgery (CSRF) vulnerability affecting all /api/admin/ endpoints in Komari. The root cause is twofold: (1) the session_token cookie is set without the SameSite or Secure attributes (login.go:68), and (2) all admin endpoints rely solely on this cookie for authentication with no CSRF token validation or Origin checks. An attacker can craft a malicious webpage that, when visited by an authenticated administrator, submits state-changing requests (POST to /api/admin/task/exec, /api/admin/2fa/disable, /api/admin/settings/, etc.). In modern browsers (Chrome 80+, Firefox 103+, Safari), cookies without an explicit SameSite attribute default to SameSite=Lax, blocking cross-site POST cookies and mitigating the attack. However, the vulnerability remains exploitable in legacy browsers (&lt;Chrome 80), within the same-origin context (via XSS or console access), or over HTTP (where Secure=false). The patched version (0.0.0-20260609084633-98122fa4d110) fixes the vulnerability.

## Affected products

- Komari Monitor Komari < 0.0.0-20260609084633-98122fa4d110

## Timeline

- 2026-06-20: disclosed: Published to GitHub Advisory Database
- 2026-06-09: patched: Patch released in version 0.0.0-20260609084633-98122fa4d110
- 2026-09-09: advisory: Advisory updated

## References

- [https://api.github.com/users/GuangChen2333](https://api.github.com/users/GuangChen2333)
- [https://github.com/GuangChen2333](https://github.com/GuangChen2333)
- [https://api.github.com/users/GuangChen2333/gists%7B/gist_id%7D](https://api.github.com/users/GuangChen2333/gists%7B/gist_id%7D)
- [https://api.github.com/users/GuangChen2333/repos](https://api.github.com/users/GuangChen2333/repos)
- [https://avatars.githubusercontent.com/u/75193557?v=4](https://avatars.githubusercontent.com/u/75193557?v=4)
- [https://api.github.com/users/GuangChen2333/events%7B/privacy%7D](https://api.github.com/users/GuangChen2333/events%7B/privacy%7D)

## Related threats

- [Komari management interface CSRF with missing SameSite attribute](https://junglewise.ai/threats/go-2026-6449-komari-management-interface-csrf-in-github-com-komari-bf436c1d)
- [GO-2025-3873 - Komari vulnerable to 2FA Authentication Bypass in github.com/komari-monitor/komari](https://junglewise.ai/threats/go-2025-3873-komari-vulnerable-to-2fa-authentication-bypass-in-github-4d6d91a4)
- [GO-2025-3874 - Komari vulnerable to Cross-site WebSocket Hijacking in github.com/komari-monitor/komari](https://junglewise.ai/threats/cve-2025-55300-komari-vulnerable-to-cross-site-websocket-hijacking)
- [Komari vulnerable to 2FA Authentication Bypass](https://junglewise.ai/threats/komari-vulnerable-to-2fa-authentication-bypass-eea596eb)
