# NousResearch/hermes-agent · Matrix markdown HTML and link sanitization security concerns

## Open now

- 1 issue, 1 PR open on GitHub.
- #42667: \[Security\] Unsafe Matrix Markdown Rendering Preserves Raw HTML and \`javascript:\` Links in Outbound \`formatted_body\`
- PR #42681: fix(matrix): reject entity-encoded URL schemes in _sanitize_link_url

The members concern sanitizing Matrix outbound markdown output: one issue reports raw HTML and \`javascript:\` links surviving in \`formatted_body\`, and two pull requests address sanitizing library HTML output and rejecting entity-encoded URL schemes in link handling. Their titles indicate a shared theme, but they do not confirm what the changes accomplish.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 1 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.67`: 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

- #42667: \[Security\] Unsafe Matrix Markdown Rendering Preserves Raw HTML and \`javascript:\` Links in Outbound \`formatted_body\`

## Prior & competing PRs

- **#42684: fix(matrix): sanitize markdown library HTML output to prevent injection**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#42681`, `#42667`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#42681: fix(matrix): reject entity-encoded URL schemes in _sanitize_link_url**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#42667`, `#106`
  - files: `plugins/platforms/matrix/adapter.py`, `tests/gateway/test_matrix.py`

## Fix status

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