# NousResearch/hermes-agent · Relay media URL origin validation security fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #71559: \[Bug\]: Relay media URL detection treats any /relay/media/ path as authenticated connector media
- PR #71567: fix(relay): bind media auth to connector origin
- PR #73214: fix(gateway): verify origin in relay media URL detection (#71559)

A bug was identified where relay media URL detection incorrectly treated any /relay/media/ path as authenticated connector media regardless of origin. Multiple fixes were made to restrict and verify origin in relay media URL detection.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. 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.50`: 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.

## Open related issues

- #71559: \[Bug\]: Relay media URL detection treats any /relay/media/ path as authenticated connector media

## Prior & competing PRs

- **#71567: fix(relay): bind media auth to connector origin**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `4591001c4bd2`, `#71559`, `#72460`, `#73214`, `#71567`, `#374151`
  - files: `gateway/relay/adapter.py`, `gateway/relay/media.py`, `tests/gateway/relay/test_relay_media.py`
- **#72460: fix(gateway): restrict relay media URL detection to same-origin (#71559)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#71567`, `#71559`
- **#73214: fix(gateway): verify origin in relay media URL detection (#71559)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `9b645516bddf`, `#71559`, `#72460`, `#73214`, `#71567`, `#374151`
  - files: `gateway/relay/media.py`, `tests/gateway/relay/test_relay_media.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
