# CVE-2026-9350: NousResearch hermes-agent authorization bypass in Batch Runner

Source: https://junglewise.ai/threats/cve-2026-9350-nousresearch-hermes-agent-authorization-bypass-in-batch-runner  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-24. Updated: 2026-05-26  
License: CC BY 4.0 with a link back

CVE-2026-9350 · Severity: high · CVSS 7.3 · Published 2026-05-24

NousResearch hermes-agent is an AI agent framework that can execute commands on a host system. A security flaw in its "Batch Runner" component allows dangerous commands to be executed automatically without the required user approval. An attacker who can provide a malicious dataset to the agent could potentially gain full control over the host machine, steal sensitive credentials, or delete critical data.

Technologies: [NousResearch Hermes Agent](https://junglewise.ai/threats/technologies/hermes-agent). Vendors: [NousResearch](https://junglewise.ai/threats/vendors/nousresearch).

## Quick answers

**Is CVE-2026-9350 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-9350 being exploited in the wild.

**How severe is CVE-2026-9350?** High severity, with a CVSS score of 7.3, published 24 May 2026.

**Which products and versions are affected?** NousResearch hermes-agent up to 2026.4.16.

**Is there a fix for CVE-2026-9350?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-9350 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-9350?** Check whether you run NousResearch Hermes Agent. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A missing authorization vulnerability exists in the `check_all_command_guards` function within `tools/approval.py`. The root cause is an insecure default fallback: when the agent is run via `batch_runner.py`, it fails to set interactive environment variables (such as `HERMES_INTERACTIVE`), causing the safety logic to treat the execution context as safe and auto-approve all commands. An attacker can exploit this by embedding prompt injection payloads in JSONL datasets processed by the Batch Runner. This bypasses regex pattern matching and security scanning, leading to remote code execution (RCE) on the host machine. As of the advisory date, the vendor has not responded to the disclosure.

## Affected products

- NousResearch hermes-agent up to 2026.4.16

## Timeline

- 2026-04-24: disclosed: Initial discovery and PoC published on GitHub Gist
- 2026-05-24: advisory: CVE-2026-9350 published via VulDB/NVD

## References

- [https://gist.github.com/YLChen-007/22cada4c9060f5123dde6185135ae3ab](https://gist.github.com/YLChen-007/22cada4c9060f5123dde6185135ae3ab)
- [https://vuldb.com/submit/812213](https://vuldb.com/submit/812213)
- [https://vuldb.com/vuln/365313](https://vuldb.com/vuln/365313)
- [https://vuldb.com/vuln/365313/cti](https://vuldb.com/vuln/365313/cti)

## Related threats

- [NousResearch hermes-agent resource exhaustion in resourceBufferFromUrl](https://junglewise.ai/threats/cve-2026-85107-nousresearch-hermes-agent-resource-exhaustion-in)
- [NousResearch hermes-agent server-side request forgery in Link Title Fetch](https://junglewise.ai/threats/cve-2026-85106-nousresearch-hermes-agent-server-side-request-forgery-in-link)
- [NousResearch hermes-agent authorization bypass in Session Management](https://junglewise.ai/threats/cve-2026-85105-nousresearch-hermes-agent-authorization-bypass-in-session)
- [NousResearch hermes-agent denial of service in MCP Tool](https://junglewise.ai/threats/cve-2026-84289-nousresearch-hermes-agent-denial-of-service-in-mcp-tool)
- [NousResearch hermes-agent denial of service in ACP Prompt Workflow](https://junglewise.ai/threats/cve-2026-84288-nousresearch-hermes-agent-denial-of-service-in-acp-prompt)
