# NousResearch/hermes-agent · PYTHONPATH injection vulnerability in code execution sandbox

## Open now

- Nothing open on GitHub.

Multiple reports and fixes address a security flaw where the code execution sandbox exposes internal modules and credentials via PYTHONPATH injection. The cluster covers the vulnerability reports, proposed patches, and a broader security fix batch.

## TL;DR

- 5 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 0 merged PR(s), 3 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.34`: 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

- #7071: \[Bug\] Hermes Agent Code Execution Sandbox Exposes Internal Modules via PYTHONPATH Injection — Configuration Secrets and Security Rules Leak
- #8028: Security: PYTHONPATH injection in code_execution_tool sandbox allows credential theft

## Prior & competing PRs

- **#7136: fix(security): patch 5 open vulnerabilities**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#7071`, `#27303`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#8050: fix(security): remove hermes root from code execution sandbox PYTHONPATH**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#22195: fix(security): sandbox execute_code against PYTHONPATH import of hermes internals**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#8050`, `#8028`

## Fix status

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