CVE-2026-58122: Use of Less Trusted Source in nesquena hermes-webui
Hermes WebUI versions prior to 0.51.307 contain an authentication bypass vulnerability that allows unauthenticated remote attackers to bypass local-origin IP restrictions by spoofing the X-Forwarded-For header with a loopback address. This bypass enables attackers to perform server-side request forgery against internal services, overwrite LLM provider configurations and API keys, or initiate OAuth device-code flows to obtain persistent access tokens.
AI Analysis
Technical Summary
CVE-2026-58122 is an authentication bypass vulnerability in nesquena's Hermes WebUI before version 0.51.307. The flaw arises because the application trusts the X-Forwarded-For header to enforce local-origin IP restrictions on onboarding endpoints. Attackers can supply a spoofed X-Forwarded-For header containing a loopback address, circumventing these restrictions without authentication. Exploitation allows server-side request forgery (SSRF) against internal services including cloud metadata endpoints, modification of large language model (LLM) provider configurations and API keys with attacker-controlled values, and initiation of OAuth device-code flows to acquire persistent access tokens stored in auth.json.
Potential Impact
The vulnerability enables unauthenticated remote attackers to bypass IP-based access controls, leading to SSRF attacks on internal services, unauthorized modification of critical configuration and credentials, and potential persistent unauthorized access via OAuth tokens. This can result in significant compromise of internal infrastructure and sensitive data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict or validate the X-Forwarded-For header at network or application layers to prevent spoofing of loopback addresses. Monitor for unusual onboarding endpoint access patterns and consider implementing additional authentication or IP validation controls.
CVE-2026-58122: Use of Less Trusted Source in nesquena hermes-webui
Description
Hermes WebUI versions prior to 0.51.307 contain an authentication bypass vulnerability that allows unauthenticated remote attackers to bypass local-origin IP restrictions by spoofing the X-Forwarded-For header with a loopback address. This bypass enables attackers to perform server-side request forgery against internal services, overwrite LLM provider configurations and API keys, or initiate OAuth device-code flows to obtain persistent access tokens.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58122 is an authentication bypass vulnerability in nesquena's Hermes WebUI before version 0.51.307. The flaw arises because the application trusts the X-Forwarded-For header to enforce local-origin IP restrictions on onboarding endpoints. Attackers can supply a spoofed X-Forwarded-For header containing a loopback address, circumventing these restrictions without authentication. Exploitation allows server-side request forgery (SSRF) against internal services including cloud metadata endpoints, modification of large language model (LLM) provider configurations and API keys with attacker-controlled values, and initiation of OAuth device-code flows to acquire persistent access tokens stored in auth.json.
Potential Impact
The vulnerability enables unauthenticated remote attackers to bypass IP-based access controls, leading to SSRF attacks on internal services, unauthorized modification of critical configuration and credentials, and potential persistent unauthorized access via OAuth tokens. This can result in significant compromise of internal infrastructure and sensitive data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict or validate the X-Forwarded-For header at network or application layers to prevent spoofing of loopback addresses. Monitor for unusual onboarding endpoint access patterns and consider implementing additional authentication or IP validation controls.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-29T14:13:18.384Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50171868715ace431ea235
Added to database: 07/09/2026, 21:48:08 UTC
Last enriched: 07/09/2026, 22:02:30 UTC
Last updated: 07/09/2026, 22:38:00 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.