# NousResearch/hermes-agent · Cross-profile session data leakage via bare session ID

## Open now

- Nothing open on GitHub.

A bug allows bare session ID lookups to silently scan and return data from other profiles' state databases. Multiple fixes address stopping cross-profile reads and failing closed when a bare session ID resolves to a different profile.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #108074. Verify it addresses your case.
- **Recommended:** read PR #108074 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-108074`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member 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.

## Closed / duplicate issues

- #106761: session_search: reading a session by bare ID silently scans every profile's state.db and returns another profile's full transcript

## Prior & competing PRs

- **#108074: Sessions no longer bind to or read another profile's state.db (#102526, #106761, #105887, #106974; salvage #102534, #106975)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/turn_explainers.py`, `agent/turn_finalizer.py`, `evals/session_search_schema/runner.py`, `hermes_cli/profiles.py`, `hermes_state_registry.py`, `tests/hermes_cli/test_deleted_profile_tombstone.py`, `tests/hermes_state/test_shared_session_db_registry.py`, `tests/run_agent/test_corruption_recovery_guidance.py`, `tests/tools/test_session_search.py`, `tests/tui_gateway/test_launch_db_home_override_race.py`, `tests/tui_gateway/test_session_resume_db_ownership.py`, `tools/session_search_tool.py`, `tui_gateway/server.py`
- **#106768: fix(session_search): do not scan other profiles for bare session_id**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
- **#106772: fix(session_search): stop cross-profile reads on a bare session id miss**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#106768`, `#106773`, `#106761`, `#106768`, `#106773`
- **#106773: fix(tools): fail closed when a bare session id resolves into another profile**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#108074`, `#106761`

## Fix status

- Merged to main in PR #108074 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-11`.
