GHSA-jhmr-57cj-q6g9: Github.com/komari monitor/komari Authentication Bypass Vulnerability
HIGHGHSA-jhmr-57cj-q6g9 is a HIGH authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/komari monitor/komari libraries in the Go ecosystem. The issue involves komari vulnerable to 2fa authentication bypass. Remediation is available by upgrading affected packages to version 0.0.0-20250809064056-cc3d54bff4c6.
GHSA-jhmr-57cj-q6g9 at a Glance
How to Fix GHSA-jhmr-57cj-q6g9
To remediate this vulnerability, upgrade all affected Github.com/komari monitor/komari dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/komari-monitor/komari to 0.0.0-20250809064056-cc3d54bff4c6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/komari-monitor/komari
How to Check if You Are Affected
To determine whether your application is affected by GHSA-jhmr-57cj-q6g9, inspect your project dependencies for Github.com/komari monitor/komari:
inspect dependencies for github.com/komari-monitor/komari
Analyze the terminal output to locate any version of Github.com/komari monitor/komari in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20250809064056-cc3d54bff4c6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/komari monitor/komari, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-jhmr-57cj-q6g9 Affected Github.com/komari monitor/komari Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/komari-monitor/komari
|
Go |
< 0.0.0-20250809064056-cc3d54bff4c6
|
0.0.0-20250809064056-cc3d54bff4c6
|
References
Frequently Asked Questions
What is GHSA-jhmr-57cj-q6g9?
Which Github.com/komari monitor/komari versions are affected?
What version fixes GHSA-jhmr-57cj-q6g9?
Is github.com/komari-monitor/komari affected?
What CWE is associated with GHSA-jhmr-57cj-q6g9?
How can I check Go dependencies for GHSA-jhmr-57cj-q6g9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jhmr-57cj-q6g9",
"modified" : "2025-08-12T00:13:37Z",
"published" : "2025-08-12T00:13:36Z",
"aliases" : [ ],
"summary" : "Komari vulnerable to 2FA Authentication Bypass",
"details" : "### Summary\n\nLogic error in 2FA verification condition allows bypass of two-factor authentication\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55\n\nThere is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid.\n\n### PoC\n\nUse any 6 digits as 2FA code\n\n### Impact\n\nBypass 2FA Authentication",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/komari-monitor/komari"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20250809064056-cc3d54bff4c6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/komari-monitor/komari/security/advisories/GHSA-jhmr-57cj-q6g9"
}, {
"type" : "WEB",
"url" : "https://github.com/komari-monitor/komari/commit/cc3d54bff4c6495beaa1c7483379cd04542c557f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/komari-monitor/komari"
}, {
"type" : "WEB",
"url" : "https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55"
}, {
"type" : "WEB",
"url" : "https://github.com/komari-monitor/komari/releases/tag/1.0.4-fix1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-12T00:13:36Z",
"nvd_published_at" : null
}
}