# NousResearch/hermes-agent · Anthropic OAuth security fixes and token handling

## Open now

- Nothing open on GitHub.

These items address multiple OAuth vulnerabilities in Anthropic authentication: a CSRF gap, a cross-process token refresh race condition, API-key shadowing, and a PKCE implementation flaw that leaked code_verifier as the state parameter without validating state on callback.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #98245. Verify it addresses your case.
- **Recommended:** read PR #98245 (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-98245`. 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 `1.00`: 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

- #87887: Anthropic dashboard OAuth (PKCE) leaks code_verifier as state and never validates state on callback

## Prior & competing PRs

- **#98245: Anthropic OAuth: shared-credential refreshes stop burning single-use tokens; dashboard PKCE removed (salvage #87891)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_adapter.py`, `agent/anthropic_credentials.py`, `agent/anthropic_endpoints.py`, `agent/anthropic_message_convert.py`, `agent/auxiliary_client.py`, `agent/credential_persistence.py`, `agent/credential_pool.py`, `hermes_cli/auth.py`, `hermes_cli/web_server.py`, `tests/agent/test_anthropic_adapter.py`, `tests/agent/test_anthropic_borrowed_row_authority.py`, `tests/agent/test_anthropic_credential_persist_failure.py`, `tests/agent/test_anthropic_keychain.py`, `tests/agent/test_anthropic_oauth_stress.py`, `tests/agent/test_anthropic_spent_rotation_verdict.py`, `tests/agent/test_anthropic_token_scope_isolation.py`, `tests/agent/test_auxiliary_client.py`, `tests/agent/test_credential_pool.py`, `tests/agent/test_credential_pool_anthropic_refresh_race.py`, `tests/agent/test_credential_pool_oat_authtype.py` (+9 more)
- **#87891: fix(auth): close Anthropic OAuth CSRF gap, cross-process refresh race, and API-key shadowing**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `b4403a942a55`, `#98245`, `#95434`

## Fix status

- Merged to main in PR #98245 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-30`.
- Subsystem: `agent/secret_sources`
