NousResearch/hermes-agent

Multiplex profile .env leaking into shared process env

Cluster 77562 · agent/secret sources. Data as of

Nothing open on GitHub. Fix merged in #101244 on 2 Sep 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #101244. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #101244. That is separate from the fix event.
Still open
Nothing open on GitHub.

These items concern a bug where loading a profile-scoped .env file with override=True writes that profile's variables into the shared process environment, potentially exposing credentials across profiles in multiplex mode. The group includes a bug report and two proposed fixes targeting the same issue.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #101244 fix(gateway): routed multiplex profiles stop leaking .env into os.environ or borrowing default creds (#77562 #84079 #88441, salvage #77592 #84154 #100211)

    merged to main

    files: contributors/emails/[redacted:email], docs/design/multiplexing-gateway.md, gateway/pairing.py, gateway/run.py, hermes_cli/config.py, hermes_cli/env_loader.py, tests/gateway/test_multiplex_adapter_registry.py, tests/gateway/test_multiplex_credential_isolation.py, tests/gateway/test_multiplex_pairing_stores.py, tests/hermes_cli/test_config_env_expansion.py, tests/hermes_cli/test_set_config_value.py, tests/test_env_loader_secret_sources.py, website/docs/user-guide/configuration.md

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #77592 fix(security): prevent multiplex dotenv credential leakage · merged via another change → 0fd9218, #101244
  • #77970 fix(gateway): profile-scoped .env load clobbers shared env under multiplex · done elsewhere → dbb6acd, #77592, #77562
Closed issues · 1
  • Closed#77562[Bug]: multiplex — a turn-scoped load_hermes_dotenv() writes the active profile's entire .env into the shared process os.environ (override=True), cross-contaminating every other profile
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent/secret sources
Merged PRs
#101244
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
2 Sep 2026

For your agent

The same facts, typed.