{"answers":{"affected":"3 open source packages ship an affected version, including github.com/komari-monitor/komari.","exploited":"There is no known exploitation of GHSA-jhmr-57cj-q6g9 in the wild and no public exploit code.","fix":"Upgrade github.com/komari-monitor/komari to 0.0.0-20250809064056-cc3d54bff4c6 or later.","what":"GHSA-jhmr-57cj-q6g9 is an authentication bypass vulnerability in github.com/komari-monitor/komari, published on 12 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-jhmr-57cj-q6g9 and fix it if it is affected.\n\nWhat it is: GHSA-jhmr-57cj-q6g9 is an authentication bypass vulnerability in github.com/komari-monitor/komari, published on 12 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-jhmr-57cj-q6g9 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/komari-monitor/komari (Go): affected all versions; fixed in 0.0.0-20250809064056-cc3d54bff4c6\n- github.com/komari-monitor/komari (Go): affected all versions; fixed in 0.0.0-20250809064056-cc3d54bff4c6\n- github.com/komari-monitor/komari (Go): affected all versions; fixed in 0.0.0-20250809064056-cc3d54bff4c6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-jhmr-57cj-q6g9/ (Markdown: https://insights.sbomify.com/GHSA-jhmr-57cj-q6g9/index.md)","id":"GHSA-jhmr-57cj-q6g9","markdown":"https://insights.sbomify.com/GHSA-jhmr-57cj-q6g9/index.md","name":"GHSA-jhmr-57cj-q6g9","record":{"aliases":["GO-2025-3873"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Komari monitoring server","requires_auth":"low_privilege","summary":"Attackers can bypass two-factor authentication by submitting any six-digit code, potentially gaining unauthorized access to Komari monitoring accounts.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Komari vulnerable to 2FA Authentication Bypass","id":"GHSA-jhmr-57cj-q6g9","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2025"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.0.0-20250809064056-cc3d54bff4c6"],"introduced":["0"],"last_affected":[],"package":"github.com/komari-monitor/komari","purl":null,"source":"GHSA-jhmr-57cj-q6g9"},{"ecosystem":"Go","fixed":["0.0.0-20250809064056-cc3d54bff4c6"],"introduced":["0"],"last_affected":[],"package":"github.com/komari-monitor/komari","purl":"pkg:golang/github.com/komari-monitor/komari","source":"GHSA-jhmr-57cj-q6g9"},{"ecosystem":"Go","fixed":["0.0.0-20250809064056-cc3d54bff4c6"],"introduced":["0"],"last_affected":[],"package":"github.com/komari-monitor/komari","purl":"pkg:golang/github.com/komari-monitor/komari","source":"GO-2025-3873"}],"products":null,"published":"2025-08-12","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can bypass two-factor authentication by submitting any six-digit code, potentially gaining unauthorized access to Komari monitoring accounts.","url":"https://insights.sbomify.com/GHSA-jhmr-57cj-q6g9/"}