---
id: CVE-2026-58122
title: >-
  Hermes WebUI before 0.51.307 contains an authentication bypass vulnerability
  that allows unauthenticated remote attackers to circumvent local-origin IP
  restrictions on onboarding endpoints by supplying a spoofed X-Forwarded-For
  header wi…
summary: >-
  Hermes WebUI before 0.51.307 contains an authentication bypass vulnerability
  that allows unauthenticated remote attackers to circumvent local-origin IP
  restrictions on onboarding endpoints by supplying a spoofed X-Forwarded-For
  header wi…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-348
published: '2026-07-09'
updated: '2026-07-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-58122'
references:
  - url: >-
      https://github.com/nesquena/hermes-webui/commit/70596e6993be0d4cee083c1c1a86f5e7ad5d57b7
    label: disclosure@vulncheck.com
  - url: 'https://github.com/nesquena/hermes-webui/pull/3758'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/nesquena/hermes-webui/releases/tag/v0.51.307'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/hermes-webui-authentication-bypass-via-x-forwarded-for-header-spoofing
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00373
epssPercentile: 0.28515
ingestedAt: '2026-07-11T20:15:25.776Z'
---

## Overview

Hermes WebUI before 0.51.307 contains an authentication bypass vulnerability that allows unauthenticated remote attackers to circumvent local-origin IP restrictions on onboarding endpoints by supplying a spoofed X-Forwarded-For header with a loopback address. Attackers can exploit this bypass to perform server-side request forgery against internal services including cloud metadata endpoints, overwrite LLM provider configuration and API keys with attacker-controlled values, or initiate OAuth device-code flows to obtain persistent access tokens stored in auth.json.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
